summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 962a05143..df2996b1a 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -116,6 +116,8 @@ void CDECL error(const char *s, ...)
ShowOSErrorBox(buf, true);
if (_video_driver != NULL) _video_driver->Stop();
+ /* Don't go into NOT_REACHED here; NOT_REACHED is using error, so
+ * using it would result in an infinite loop instead of errors. */
assert(0);
exit(1);
}