mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
rollback strategy deletion
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user