1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 11:16:35 +00:00

Properly disable named exterior destination interior flag

This commit is contained in:
Alexei Kotov 2025-07-03 07:31:25 +03:00
parent 00e6e855f1
commit 7cf74c570e

View file

@ -132,10 +132,15 @@ namespace MWGui
cellname = MWBase::Environment::get().getWorld()->getCellName(&cell);
interior = false;
}
else if (worldModel.findCell(cellname, false) == nullptr)
else
{
Log(Debug::Error) << "Failed to add travel destination: unknown cell (" << cellname << ")";
continue;
const MWWorld::CellStore* destCell = worldModel.findCell(cellname, false);
if (destCell == nullptr)
{
Log(Debug::Error) << "Failed to add travel destination: unknown cell (" << cellname << ")";
continue;
}
interior = !destCell->getCell()->isExterior();
}
addDestination(ESM::RefId::stringRefId(cellname), dest.mPos, interior);
}