(svn r20840) -Fix: make write to NULL pointer volatile so it's not optimised away

This commit is contained in:
smatz 2010-09-24 13:45:02 +00:00
parent fa5b26dced
commit ee3d635eb8
1 changed files with 1 additions and 1 deletions

View File

@ -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