mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away
This commit is contained in:
parent
fa5b26dced
commit
ee3d635eb8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user