Skip to content

Commit

Permalink
Engine: fixed Pathfinder_IsWalkableAt() return value
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Feb 16, 2025
1 parent cb08e7c commit e655e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/ac/pathfinder_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ScriptUserObject *Pathfinder_Trace(ScriptPathfinder *pathfind, int srcx, int src
bool Pathfinder_IsWalkableAt(ScriptPathfinder *pathfind, int x, int y)
{
if (!pathfind->GetRouteFinder())
return nullptr;
return false;

pathfind->SyncPathfinder(); // sync with the source
return pathfind->GetRouteFinder()->IsWalkableAt(x, y);
Expand Down

0 comments on commit e655e66

Please sign in to comment.