From 6e52fc3f7f321b7bc97f2ee85caacd3757e730cc Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Sat, 27 Feb 2010 18:11:43 +0100 Subject: fix compile on linux. --HG-- branch : trunk --- src/scripts/northrend/naxxramas/boss_kelthuzad.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp index 559205d9a38..76ead936212 100644 --- a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp +++ b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp @@ -507,7 +507,10 @@ struct boss_kelthuzadAI : public BossAI if (!player->isCharmed()) { player->SetFloatValue(OBJECT_FIELD_SCALE_X, (*itr).second); - itr = chained.erase(itr); + std::map::iterator next = itr; + ++next; + chained.erase(itr); + itr = next; continue; } -- cgit v1.2.3