(svn r22025) -Fix: verify there is enough space in the pool when creating new pool items while loading old savegames

This commit is contained in:
smatz
2011-02-08 18:34:13 +00:00
parent 364ef8e6e6
commit 887a7724dc
6 changed files with 38 additions and 4 deletions

View File

@@ -13,6 +13,7 @@
#define SAVELOAD_H
#include "../fileio_type.h"
#include "../strings_type.h"
#ifdef SIZE_MAX
#undef SIZE_MAX
@@ -539,6 +540,7 @@ void SlGlobList(const SaveLoadGlobVarList *sldg);
void SlArray(void *array, size_t length, VarType conv);
void SlObject(void *object, const SaveLoad *sld);
bool SlObjectMember(void *object, const SaveLoad *sld);
void NORETURN SlError(StringID string, const char *extra_msg = NULL);
void NORETURN SlErrorCorrupt(const char *msg);
bool SaveloadCrashWithMissingNewGRFs();