Use helper when checking if object exists in path.cpp

This commit is contained in:
ephphatha 2021-12-29 12:48:44 +11:00 committed by Anders Jenbo
commit a6630eacb6

View file

@ -333,7 +333,7 @@ bool IsTileOccupied(Point position)
if (dPlayer[position.x][position.y] != 0) {
return true;
}
if (dObject[position.x][position.y] != 0) {
if (IsObjectAtPosition(position)) {
return true;
}