diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 753f83b..19a31f7 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -48,7 +48,14 @@ Variable Game::getParam( const Bu::String &sName ) const | |||
48 | 48 | ||
49 | Situation *Game::getSituation( const Bu::String &sName ) | 49 | Situation *Game::getSituation( const Bu::String &sName ) |
50 | { | 50 | { |
51 | return hSituation.get( sName ); | 51 | try |
52 | { | ||
53 | return hSituation.get( sName ); | ||
54 | } | ||
55 | catch( Bu::HashException &e ) | ||
56 | { | ||
57 | throw Bu::ExceptionBase(("No such situation <<" + sName + ">>").getStr()); | ||
58 | } | ||
52 | } | 59 | } |
53 | 60 | ||
54 | bool Game::execCommand( class GameState &gState, const Bu::StringList &lCmd ) | 61 | bool Game::execCommand( class GameState &gState, const Bu::StringList &lCmd ) |