mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
rollback strategy deletion
This commit is contained in:
parent
5d3ab08d30
commit
c8d223e898
@ -71,13 +71,13 @@ Engine::~Engine(void)
|
||||
{
|
||||
Reset();
|
||||
|
||||
for (std::map<std::string, Strategy*>::iterator i = strategies.begin(); i != strategies.end(); i++)
|
||||
{
|
||||
Strategy* strategy = i->second;
|
||||
if (strategy) {
|
||||
delete strategy;
|
||||
}
|
||||
}
|
||||
// for (std::map<std::string, Strategy*>::iterator i = strategies.begin(); i != strategies.end(); i++)
|
||||
// {
|
||||
// Strategy* strategy = i->second;
|
||||
// if (strategy) {
|
||||
// delete strategy;
|
||||
// }
|
||||
// }
|
||||
|
||||
strategies.clear();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user