From 3f65b47a5e3c52d116b515a9fc7c3e3de74e4ee3 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 10 Mar 2014 17:20:41 -0400 Subject: [PATCH] small change to sim.partProperty --- 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 644a31fbb..9d09560c5 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -685,7 +685,7 @@ int LuaScriptInterface::simulation_partPosition(lua_State * l) int LuaScriptInterface::simulation_partProperty(lua_State * l) { int argCount = lua_gettop(l); - int particleID = lua_tointeger(l, 1); + int particleID = luaL_checkinteger(l, 1); StructProperty * property = NULL; if(particleID < 0 || particleID >= NPART || !luacon_sim->parts[particleID].type)