Skip to content

Commit e655e66

Browse files
committed
Engine: fixed Pathfinder_IsWalkableAt() return value
1 parent cb08e7c commit e655e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ac/pathfinder_script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ScriptUserObject *Pathfinder_Trace(ScriptPathfinder *pathfind, int srcx, int src
5959
bool Pathfinder_IsWalkableAt(ScriptPathfinder *pathfind, int x, int y)
6060
{
6161
if (!pathfind->GetRouteFinder())
62-
return nullptr;
62+
return false;
6363

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

0 commit comments

Comments
 (0)