From b44c991fc17dbb50882de6bf74e580c0f7ac5e29 Mon Sep 17 00:00:00 2001 From: iota97 Date: Tue, 7 Sep 2021 16:16:39 +0200 Subject: [PATCH] Add info check --- UI/GameScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index fdcdacaf2f..9cb05ca450 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -190,7 +190,7 @@ void GameScreen::CreateViews() { } } - bool isHomebrew = info->region > GAMEREGION_MAX; + bool isHomebrew = info && info->region > GAMEREGION_MAX; if (fileTypeSupportCRC && !isHomebrew && !Reporting::HasCRC(gamePath_) ) { btnCalcCRC_ = rightColumnItems->Add(new ChoiceWithValueDisplay(&CRC32string, ga->T("Calculate CRC"), (const char*)nullptr)); btnCalcCRC_->OnClick.Handle(this, &GameScreen::OnDoCRC32);