diff options
author | smatz <smatz@openttd.org> | 2010-09-24 13:45:02 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-09-24 13:45:02 +0000 |
commit | ee3d635eb872a1b52f74ffa684ef2d40602bacb6 (patch) | |
tree | 0eb11b31e6f5cc96790c1e9101e9e2859398b8a0 /src | |
parent | fa5b26dced9719222182ba6b4591491f8e8d8e6f (diff) | |
download | openttd-ee3d635eb872a1b52f74ffa684ef2d40602bacb6.tar.xz |
(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away
Diffstat (limited to 'src')
-rw-r--r-- | src/main_gui.cpp | 2 |
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 |