diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index b07c5c9a..ba65298f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -29,6 +29,7 @@ #include <string> #include <guichan/sdl/sdlinput.hpp> +#include <guichan/exception.hpp> #include "beingmanager.h" #include "configuration.h" @@ -627,8 +628,17 @@ void Game::handleInput() } // Push input to GUI when not used - if (!used) { - guiInput->pushInput(event); + if (!used) + { + try + { + guiInput->pushInput(event); + } + catch (gcn::Exception e) + { + const char* err = e.getMessage().c_str(); + logger->log("Warning: guichan input exception: %s", err); + } } } // End while |