From eeb50b354f577060a72ea468216621294fcdd15e Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 24 Sep 2013 16:16:37 +0800 Subject: [PATCH] Make sure ginfo->pic0Texture is not NULL --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 077a1981a8..f6cc397d6e 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -684,7 +684,7 @@ void GamePauseScreen::DrawBackground(UIContext &dc) { if (ginfo) { if (ginfo->pic1Texture) { ginfo->pic1Texture->Bind(0); - } else { + } else if (ginfo->pic0Texture) { // Draw pic0 if pic1 is not available ginfo->pic0Texture->Bind(0); }