summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-20 21:10:58 +0000
committerrubidium <rubidium@openttd.org>2011-02-20 21:10:58 +0000
commitb6be3f2acced809fc9d47b994d516e49d7058a82 (patch)
tree99de4b8ae8cf3e5be729d0e7ae39d09da62c17eb /src/saveload
parent77fa68c1da6f870137d686200d3962f91e3915d9 (diff)
downloadopenttd-b6be3f2acced809fc9d47b994d516e49d7058a82.tar.xz
(svn r22124) -Codechange: move comment to its logical place
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index bff6b05d7..76f5215e6 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -483,11 +483,12 @@ void NORETURN SlError(StringID string, const char *extra_msg)
_sl.error_str = string;
free(_sl.extra_msg);
_sl.extra_msg = (extra_msg == NULL) ? NULL : strdup(extra_msg);
- /* We have to NULL all pointers here; we might be in a state where
- * 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. */
}
+
+ /* We have to NULL all pointers here; we might be in a state where
+ * 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. */
if (_sl.action == SLA_LOAD || _sl.action == SLA_PTRS) SlNullPointers();
throw std::exception();
}