potential fix in sim.partCreate, also

This commit is contained in:
jacob1
2017-07-13 20:55:03 -04:00
parent 7dd538b82c
commit f3a7d966d2

View File

@@ -903,6 +903,11 @@ int LuaScriptInterface::simulation_partCreate(lua_State * l)
lua_pushinteger(l, -1);
return 1;
}
if (newID >= 0 && !luacon_sim->parts[newID].type)
{
lua_pushinteger(l, -1);
return 1;
}
int type = lua_tointeger(l, 4);
int v = -1;
if (type>>8)