Fix crash when using mouse click with unassigned tools

This commit is contained in:
Simon Robertshaw
2012-08-10 22:31:58 +01:00
parent a6b3674f22
commit 5a8d26554a

View File

@@ -645,7 +645,7 @@ void GameView::NotifyActiveToolsChanged(GameModel * sender)
void GameView::NotifyLastToolChanged(GameModel * sender) void GameView::NotifyLastToolChanged(GameModel * sender)
{ {
if(sender->GetLastTool()->GetResolution() == CELL) if(sender->GetLastTool() && sender->GetLastTool()->GetResolution() == CELL)
{ {
wallBrush = true; wallBrush = true;
} }