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
 
@@ -305,13 +305,13 @@ struct MainWindow : Window
 
			case GHK_RESET_OBJECT_TO_PLACE: ResetObjectToPlace(); break;
 
			case GHK_DELETE_WINDOWS: DeleteNonVitalWindows(); break;
 
			case GHK_DELETE_NONVITAL_WINDOWS: DeleteAllNonVitalWindows(); break;
 
			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
 
				/* Server can not cheat in advertise mode either! */
 
#ifdef ENABLE_NETWORK
 
				if (!_networking || !_network_server || !_settings_client.network.server_advertise)
0 comments (0 inline, 0 general)