fix sim.loadStamp / tptmp crash

This commit is contained in:
jacob1 2015-09-10 13:07:52 -04:00
parent fee8516157
commit f827e125cb

View File

@ -1635,7 +1635,7 @@ int LuaScriptInterface::simulation_saveStamp(lua_State * l)
int LuaScriptInterface::simulation_loadStamp(lua_State * l)
{
int i = -1, x, y;
SaveFile * tempfile;
SaveFile * tempfile = NULL;
x = luaL_optint(l,2,0);
y = luaL_optint(l,3,0);
if (lua_isstring(l, 1)) //Load from 10 char name, or full filename