Fix crash when using mouse click with unassigned tools
This commit is contained in:
parent
a6b3674f22
commit
5a8d26554a
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user