Mercurial > hg > openttd
changeset 14462:5301b1e43a13 draft
(svn r19021) -Fix [FS#3570]: don't NULL the pointers when saving the savegame on an error during saving; the savegame is still valid
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 05 Feb 2010 20:18:30 +0000 |
parents | 09b9de9dd922 |
children | 00388bc2f684 |
files | src/saveload/saveload.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -199,7 +199,7 @@ * 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(); }