1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

Consider empty RefId as absent exterior cell

This commit is contained in:
elsid 2023-04-04 01:00:53 +02:00
parent a9c7354338
commit b7b68bd164
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -352,7 +352,7 @@ namespace MWWorld
if (bypass && !mStartCell.empty()) if (bypass && !mStartCell.empty())
{ {
ESM::Position pos; ESM::Position pos;
if (findExteriorPosition(mStartCell, pos).empty()) if (!findExteriorPosition(mStartCell, pos).empty())
{ {
changeToExteriorCell(pos, true); changeToExteriorCell(pos, true);
adjustPosition(getPlayerPtr(), false); adjustPosition(getPlayerPtr(), false);