Added a probably needed return statement to avoid dereferencing a NULL pointer. (again, yak from #scummvm pointed this out).
This commit is contained in:
parent
074f9dbe04
commit
9ace553933
1 changed files with 1 additions and 0 deletions
|
@ -849,6 +849,7 @@ static void GetActorNodeLocation() {
|
|||
lua_pushnil();
|
||||
if (debugLevel == DEBUG_WARN || debugLevel == DEBUG_ALL)
|
||||
warning("GetActorNodeLocation() when actor has no nodes!");
|
||||
return;
|
||||
}
|
||||
lua_pushnumber(allNodes[node]._pos.x());
|
||||
lua_pushnumber(allNodes[node]._pos.y());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue