(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

@@ -472,7 +472,7 @@ static void SlNullPointers()
* @note This function does never return as it throws an exception to
* break out of all the saveload code.
*/
static void NORETURN SlError(StringID string, const char *extra_msg = NULL)
void NORETURN SlError(StringID string, const char *extra_msg)
{
/* Distinguish between loading into _load_check_data vs. normal save/load. */
if (_sl.action == SLA_LOAD_CHECK) {