summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 997950a24..fec149d36 100644
--- a/openttd.c
+++ b/openttd.c
@@ -553,6 +553,7 @@ static inline ThreadMsg OTTD_PollThreadEvent(void) {return _message;}
* It will stall as long as the mutex is not freed (handled) by the game */
void OTTD_SendThreadMessage(ThreadMsg msg)
{
+ if (_exit_game) return;
while (_message != 0) CSleep(10);
_message = msg;