mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 10:20:04 +02:00
small change to sim.partProperty
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user