mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-23 03:47:34 -04:00
Count pathgrids with 0-1 nodes as non-existent
This commit is contained in:
parent
4707d7602d
commit
8caf68ad30
@ -637,7 +637,7 @@ namespace MWMechanics
|
||||
const MWWorld::Cell& cell = *actor.getCell()->getCell();
|
||||
const ESM::Pathgrid* pathgrid = world.getStore().get<ESM::Pathgrid>().search(cell);
|
||||
// Moved to a cell without a pathgrid
|
||||
if (pathgrid == nullptr)
|
||||
if (pathgrid == nullptr || pathgrid->mPoints.size() < 2)
|
||||
{
|
||||
storage.mAllowedPositions.clear();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user