mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
lib_freeslot: Init dehacked state so SOC initialised later won't nuke freeslots generated here
This commit is contained in:
parent
ab77b88a24
commit
9e1a2a5201
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ static inline int lib_freeslot(lua_State *L)
|
|||
if (!lua_lumploading)
|
||||
return luaL_error(L, "This function cannot be called from within a hook or coroutine!");
|
||||
|
||||
if (!deh_loaded)
|
||||
initfreeslots();
|
||||
|
||||
deh_loaded = true;
|
||||
|
||||
while (n-- > 0)
|
||||
{
|
||||
s = Z_StrDup(luaL_checkstring(L,1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue