From a39f63cdfa5ce15b22f294a8bb1db3a036ce462d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Mar 2012 02:05:40 +0300 Subject: One part of fixes after auto checking. --- src/game.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index e20b6c5df..143751731 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -900,7 +900,7 @@ void Game::handleActive(SDL_Event &event) if (event.active.gain) { // window restore Client::setIsMinimized(false); - if (!player_node && !player_node->getAway()) + if (player_node && !player_node->getAway()) fpsLimit = config.getIntValue("fpslimit"); if (player_node) player_node->setHalfAway(false); @@ -983,7 +983,8 @@ void Game::handleInput() { try { - guiInput->pushInput(event); + if (guiInput) + guiInput->pushInput(event); } catch (const gcn::Exception &e) { -- cgit v1.2.3-60-g2f50