diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 95a5c2aa5..a09224be8 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -80,9 +80,10 @@ BotInfo::~BotInfo() ci->bi = NULL; } - for (CommandMap::const_iterator it = this->Commands.begin(), it_end = this->Commands.end(); it != it_end; ++it) + for (CommandMap::const_iterator it = this->Commands.begin(), it_end = this->Commands.end(); it != it_end;) { Command *c = it->second; + ++it; if (c->module) c->module->DelCommand(this, c); |