mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Show a console error if the gamestate contains too many tables
This commit is contained in:
parent
e52cb7f6fa
commit
87206a8c21
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…
Reference in a new issue