mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 22:22:55 +00:00
Fix missing lua_pop in ArchiveExtVars
This commit is contained in:
parent
2223283208
commit
0b836a9841
1 changed files with 3 additions and 0 deletions
|
|
@ -716,7 +716,10 @@ static void ArchiveExtVars(void *pointer, const char *ptype)
|
||||||
lua_pop(gL, 1);
|
lua_pop(gL, 1);
|
||||||
|
|
||||||
if (i == 0 && !fastcmp(ptype,"player")) // skip anything that has an empty table and isn't a player.
|
if (i == 0 && !fastcmp(ptype,"player")) // skip anything that has an empty table and isn't a player.
|
||||||
|
{
|
||||||
|
lua_pop(gL, 1);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
if (fastcmp(ptype,"mobj")) // mobjs must write their mobjnum as a header
|
if (fastcmp(ptype,"mobj")) // mobjs must write their mobjnum as a header
|
||||||
WRITEUINT32(save_p, ((mobj_t *)pointer)->mobjnum);
|
WRITEUINT32(save_p, ((mobj_t *)pointer)->mobjnum);
|
||||||
WRITEUINT16(save_p, i);
|
WRITEUINT16(save_p, i);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue