....ow this slipup hurt me badly
This commit is contained in:
parent
d456a5362c
commit
896de73c60
|
@ -1209,6 +1209,10 @@ void LUAh_PlayerQuit(player_t *plr, int reason)
|
||||||
LUA_PushUserdata(gL, plr, META_PLAYER); // Player that quit
|
LUA_PushUserdata(gL, plr, META_PLAYER); // Player that quit
|
||||||
lua_pushinteger(gL, reason); // Reason for quitting
|
lua_pushinteger(gL, reason); // Reason for quitting
|
||||||
}
|
}
|
||||||
|
lua_pushfstring(gL, FMT_HOOKID, hookp->id);
|
||||||
|
lua_gettable(gL, LUA_REGISTRYINDEX);
|
||||||
|
lua_pushvalue(gL, -3);
|
||||||
|
lua_pushvalue(gL, -3);
|
||||||
LUA_Call(gL, 2);
|
LUA_Call(gL, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue