Fix cleanup of scenarios

parent 9b9bd334
...@@ -47,7 +47,7 @@ Controller::~Controller() ...@@ -47,7 +47,7 @@ Controller::~Controller()
{ {
// Delete scenarios // Delete scenarios
for (int i = 0; i < SCENARIO_COUNT; i++) for (int i = 0; i < SCENARIO_COUNT; i++)
delete scenarios; delete scenarios[i];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment