mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-25 17:20:47 +02:00
Fix crash when using mouse click with unassigned tools
This commit is contained in:
@@ -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