mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user