summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-10 22:11:37 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-10 22:11:37 (GMT)
commitca7b02dbfdd0c11bc9e01b606797f5274f548c6c (patch)
tree3839b214a0771744f5d0bdc72d5f108e1d07cc1c
parente34ed89dc359a685fc80011cfe6dbbbe175008c3 (diff)
downloadpowder-ca7b02dbfdd0c11bc9e01b606797f5274f548c6c.zip
powder-ca7b02dbfdd0c11bc9e01b606797f5274f548c6c.tar.gz
Don't set tool strength when there's no tool
-rw-r--r--src/game/GameController.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 17a6d4f..1533852 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -351,6 +351,7 @@ void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueu
pointQueue.pop();
}
}
+ return;
}
activeTool->SetStrength(gameModel->GetToolStrength());