Skip to content

Commit

Permalink
small change to sim.partProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 10, 2014
1 parent 7603da0 commit 3f65b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/LuaScriptInterface.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 3f65b47

Please sign in to comment.