mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 19:34:01 +02:00
potential fix in sim.partCreate, also
This commit is contained in:
@@ -903,6 +903,11 @@ int LuaScriptInterface::simulation_partCreate(lua_State * l)
|
|||||||
lua_pushinteger(l, -1);
|
lua_pushinteger(l, -1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (newID >= 0 && !luacon_sim->parts[newID].type)
|
||||||
|
{
|
||||||
|
lua_pushinteger(l, -1);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
int type = lua_tointeger(l, 4);
|
int type = lua_tointeger(l, 4);
|
||||||
int v = -1;
|
int v = -1;
|
||||||
if (type>>8)
|
if (type>>8)
|
||||||
|
Reference in New Issue
Block a user