[Scummvm-cvs-logs] SF.net SVN: scummvm: [32918] residual/trunk/engine/lua.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sat Jul 5 17:20:46 CEST 2008
Revision: 32918
http://scummvm.svn.sourceforge.net/scummvm/?rev=32918&view=rev
Author: peres001
Date: 2008-07-05 08:20:46 -0700 (Sat, 05 Jul 2008)
Log Message:
-----------
Added a probably needed return statement to avoid dereferencing a NULL pointer. (again, yak from #scummvm pointed this out).
Modified Paths:
--------------
residual/trunk/engine/lua.cpp
Modified: residual/trunk/engine/lua.cpp
===================================================================
--- residual/trunk/engine/lua.cpp 2008-07-05 15:06:39 UTC (rev 32917)
+++ residual/trunk/engine/lua.cpp 2008-07-05 15:20:46 UTC (rev 32918)
@@ -849,6 +849,7 @@
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());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list