summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-09-24 13:45:02 +0000
committersmatz <smatz@openttd.org>2010-09-24 13:45:02 +0000
commitee3d635eb872a1b52f74ffa684ef2d40602bacb6 (patch)
tree0eb11b31e6f5cc96790c1e9101e9e2859398b8a0 /src/main_gui.cpp
parentfa5b26dced9719222182ba6b4591491f8e8d8e6f (diff)
downloadopenttd-ee3d635eb872a1b52f74ffa684ef2d40602bacb6.tar.xz
(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 1a4e876d1..b5ebe97dd 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -308,7 +308,7 @@ struct MainWindow : Window
case GHK_REFRESH_SCREEN: MarkWholeScreenDirty(); break;
case GHK_CRASH: // Crash the game
- *(byte*)0 = 0;
+ *(volatile byte *)0 = 0;
break;
case GHK_MONEY: // Gimme money