From 270a1e6df378702be9ed44d5f66ea9e0b7de91e3 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Sun, 27 Jun 2010 12:45:13 +0300 Subject: [PATCH] fixed unhandled destroy screen in Application:restore_screens_size --- client/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/application.cpp b/client/application.cpp index 8d2c34fe..482215c0 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -1449,7 +1449,7 @@ void Application::enter_full_screen() void Application::restore_screens_size() { for (int i = 0; i < (int)_screens.size(); i++) { - if (_screens[i]->is_size_locked()) { + if (!_screens[i] || _screens[i]->is_size_locked()) { continue; } _screens[i]->resize(SCREEN_INIT_WIDTH, SCREEN_INIT_HEIGHT);