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:
parent
00e6e855f1
commit
7cf74c570e
1 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue