mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 09:24:28 +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)
|
void GameView::NotifyLastToolChanged(GameModel * sender)
|
||||||
{
|
{
|
||||||
if(sender->GetLastTool()->GetResolution() == CELL)
|
if(sender->GetLastTool() && sender->GetLastTool()->GetResolution() == CELL)
|
||||||
{
|
{
|
||||||
wallBrush = true;
|
wallBrush = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user