Make sure ginfo->pic0Texture is not NULL

This commit is contained in:
raven02 2013-09-24 16:16:37 +08:00
parent 69234a1103
commit eeb50b354f

View File

@ -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);
}