1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Remove a firing assert (Fixes #2871)

This commit is contained in:
scrawl 2015-08-18 14:51:32 +02:00
parent e888fd7034
commit dca08b0b42

View File

@ -221,7 +221,8 @@ namespace MWMechanics
}
mPath = mCell->aStarSearch(startNode, endNode.first);
assert(!mPath.empty());
if (mPath.empty())
return;
// convert supplied path to world co-ordinates
for (std::list<ESM::Pathgrid::Point>::iterator iter(mPath.begin()); iter != mPath.end(); ++iter)