From f827e125cbc01aa1fd9bdcb3a4b8cb47dea40f3b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 10 Sep 2015 13:07:52 -0400 Subject: [PATCH] fix sim.loadStamp / tptmp crash --- src/lua/LuaScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index 257ea15b2..263479af0 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -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