summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-10 21:31:58 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-10 21:31:58 (GMT)
commit5a8d26554a8bca79d7d502e94f54b219394532d5 (patch)
tree9d7e3453bf25df5dae544d8b0289bdbfe00432c3 /src/game/GameView.cpp
parenta6b3674f22b429dd4e8d5c146cd0b766baf886df (diff)
downloadpowder-5a8d26554a8bca79d7d502e94f54b219394532d5.zip
powder-5a8d26554a8bca79d7d502e94f54b219394532d5.tar.gz
Fix crash when using mouse click with unassigned tools
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 1876b05..106e4e0 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -645,7 +645,7 @@ void GameView::NotifyActiveToolsChanged(GameModel * sender)
void GameView::NotifyLastToolChanged(GameModel * sender)
{
- if(sender->GetLastTool()->GetResolution() == CELL)
+ if(sender->GetLastTool() && sender->GetLastTool()->GetResolution() == CELL)
{
wallBrush = true;
}