diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 12:06:10 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 12:06:10 (GMT) |
| commit | 4f3e03e3176789ba095b714d1cca214409b27c06 (patch) | |
| tree | c4cc858b962121b82e3bb6a38dfd7ace3c8795e2 /src/game/GameModel.cpp | |
| parent | c877e445b9cc9176415924acc07e96308ef1c7a3 (diff) | |
| download | powder-4f3e03e3176789ba095b714d1cca214409b27c06.zip powder-4f3e03e3176789ba095b714d1cca214409b27c06.tar.gz | |
Update gitignore, show votes correctly, fixes #97
Diffstat (limited to 'src/game/GameModel.cpp')
| -rw-r--r-- | src/game/GameModel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp index c897877..9505397 100644 --- a/src/game/GameModel.cpp +++ b/src/game/GameModel.cpp @@ -263,6 +263,10 @@ void GameModel::SetVote(int direction) currentSave->vote = direction; notifySaveChanged(); } + else + { + throw GameModelException("Could not vote: "+Client::Ref().GetLastError()); + } } } |
