fix crash when showing stats screen
This commit is contained in:
parent
fee46e9fe9
commit
2d120522e1
1 changed files with 2 additions and 2 deletions
|
@ -1210,10 +1210,12 @@ void ShowStats(void)
|
|||
if (GameResult == GameVictory) {
|
||||
if (TheUI.VictoryBackgroundG) {
|
||||
LoadGraphic(TheUI.VictoryBackgroundG);
|
||||
background = TheUI.VictoryBackgroundG;
|
||||
}
|
||||
} else {
|
||||
if (TheUI.DefeatBackgroundG) {
|
||||
LoadGraphic(TheUI.DefeatBackgroundG);
|
||||
background = TheUI.DefeatBackgroundG;
|
||||
}
|
||||
}
|
||||
ResizeGraphic(background, VideoWidth, VideoHeight);
|
||||
|
@ -1248,8 +1250,6 @@ void ShowStats(void)
|
|||
++frame;
|
||||
}
|
||||
|
||||
FreeGraphic(background);
|
||||
|
||||
VideoSyncSpeed = old_video_sync;
|
||||
SetVideoSync();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue