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();
|
Reset();
|
||||||
|
|
||||||
for (std::map<std::string, Strategy*>::iterator i = strategies.begin(); i != strategies.end(); i++)
|
// for (std::map<std::string, Strategy*>::iterator i = strategies.begin(); i != strategies.end(); i++)
|
||||||
{
|
// {
|
||||||
Strategy* strategy = i->second;
|
// Strategy* strategy = i->second;
|
||||||
if (strategy) {
|
// if (strategy) {
|
||||||
delete strategy;
|
// delete strategy;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
strategies.clear();
|
strategies.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user