Added a probably needed return statement to avoid dereferencing a NULL pointer. (again, yak from #scummvm pointed this out).

This commit is contained in:
peres 2008-07-05 15:20:46 +00:00
parent 074f9dbe04
commit 9ace553933

View file

@ -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());