Use helper when checking if object exists in path.cpp
This commit is contained in:
parent
be2d89efaa
commit
a6630eacb6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue