Made states unmodifable in CMD building code

This commit is contained in:
Zachary McAlpin 2020-10-06 16:54:23 -05:00
parent e393093e73
commit 0f3c87a705

View file

@ -919,6 +919,8 @@ static int state_set(lua_State *L)
if (hud_running)
return luaL_error(L, "Do not alter states in HUD rendering code!");
if (hook_cmd_running)
return luaL_error(L, "Do not alter states in CMD building code!");
if (fastcmp(field,"sprite")) {
value = luaL_checknumber(L, 3);