Changeset - r16134:8da2e20f5d72
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-09-24 13:45:02
smatz@openttd.org
(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/main_gui.cpp
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)