(svn r19021) -Fix [FS#3570]: don't NULL the pointers when saving the savegame on an error during saving; the savegame is still valid

This commit is contained in:
rubidium 2010-02-05 20:18:30 +00:00
parent 81f2b41b92
commit cc204f134b

View File

@ -199,7 +199,7 @@ static void NORETURN SlError(StringID string, const char *extra_msg = NULL)
* the pointers are actually filled with indices, which means that
* when we access them during cleaning the pool dereferences of
* those indices will be made with segmentation faults as result. */
SlNullPointers();
if (_sl.action == SLA_LOAD || _sl.action == SLA_PTRS) SlNullPointers();
throw std::exception();
}