mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-27 13:31:43 +00:00
Show a console error if the gamestate contains too many tables
This commit is contained in:
parent
449799bd5a
commit
88408619aa
1 changed files with 9 additions and 0 deletions
|
|
@ -980,8 +980,17 @@ static UINT8 ArchiveValue(int TABLESINDEX, int myindex)
|
|||
lua_pop(gL, 1);
|
||||
}
|
||||
if (!found)
|
||||
{
|
||||
t++;
|
||||
|
||||
if (t == 0)
|
||||
{
|
||||
CONS_Alert(CONS_ERROR, "Too many tables to archive!\n");
|
||||
WRITEUINT8(save_p, ARCH_NULL);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
WRITEUINT8(save_p, ARCH_TABLE);
|
||||
WRITEUINT16(save_p, t);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue