From 2d120522e18f4d3be0efba1917e9f9deed1d9426 Mon Sep 17 00:00:00 2001 From: nehalmistry <> Date: Sun, 29 Aug 2004 15:59:37 +0000 Subject: [PATCH] fix crash when showing stats screen --- src/game/intro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/intro.cpp b/src/game/intro.cpp index 1de76e03b..c14a059ae 100644 --- a/src/game/intro.cpp +++ b/src/game/intro.cpp @@ -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(); }