small change to sim.partProperty
This commit is contained in:
parent
7603da0242
commit
3f65b47a5e
@ -685,7 +685,7 @@ int LuaScriptInterface::simulation_partPosition(lua_State * l)
|
|||||||
int LuaScriptInterface::simulation_partProperty(lua_State * l)
|
int LuaScriptInterface::simulation_partProperty(lua_State * l)
|
||||||
{
|
{
|
||||||
int argCount = lua_gettop(l);
|
int argCount = lua_gettop(l);
|
||||||
int particleID = lua_tointeger(l, 1);
|
int particleID = luaL_checkinteger(l, 1);
|
||||||
StructProperty * property = NULL;
|
StructProperty * property = NULL;
|
||||||
|
|
||||||
if(particleID < 0 || particleID >= NPART || !luacon_sim->parts[particleID].type)
|
if(particleID < 0 || particleID >= NPART || !luacon_sim->parts[particleID].type)
|
||||||
|
Loading…
Reference in New Issue
Block a user