summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 0ed9cf0..a1c4965 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -401,7 +401,7 @@ void GameController::DrawFill(int toolSelection, ui::Point point)
activeTool->DrawFill(sim, cBrush, point);
}
-void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueue)
+void GameController::DrawPoints(int toolSelection, queue<ui::Point> & pointQueue)
{
Simulation * sim = gameModel->GetSimulation();
Tool * activeTool = gameModel->GetActiveTool(toolSelection);
@@ -413,7 +413,7 @@ void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueu
{
while(!pointQueue.empty())
{
- delete pointQueue.front();
+ //delete pointQueue.front();
pointQueue.pop();
}
}
@@ -427,8 +427,8 @@ void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueu
bool first = true;
while(!pointQueue.empty())
{
- ui::Point fPoint = *pointQueue.front();
- delete pointQueue.front();
+ ui::Point fPoint = pointQueue.front();
+ //delete pointQueue.front();
pointQueue.pop();
if(!first)
{