Forgot a null check

This commit is contained in:
Henrik Rydgard 2013-09-11 07:13:06 +02:00
parent 2745744d99
commit e5e0a5e132

View File

@ -284,7 +284,9 @@ UI::EventReturn GameSettingsScreen::OnRenderingMode(UI::EventParams &e) {
}
UI::EventReturn GameSettingsScreen::OnResolutionChange(UI::EventParams &e) {
gpu->Resized();
if (gpu) {
gpu->Resized();
}
return UI::EVENT_DONE;
}