aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2013-11-29 20:59:06 +0100
committerjackpoz <giacomopoz@gmail.com>2013-11-29 20:59:06 +0100
commit6aaa7d9ed0cbdf3c3a7b813c575aa45dfa892595 (patch)
tree673f51bd2815f6622aee9931155f7a191512a711
parent3b471f495c765b2a278bed8e62e9210fab7f80e9 (diff)
parentb27f2f753bb80d3861f416a70325414eb434144f (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp
index c4e8ba49ba9..aa3568a62d5 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp
@@ -558,8 +558,12 @@ void BattlegroundIC::UpdateNodeWorldState(ICNodePoint* nodePoint)
uint32 worldstate = nodePoint->worldStates[nodePoint->nodeState];
// with this we are sure we dont bug the client
- for (uint8 i = 0; i < 4; ++i)
+ for (uint8 i = 0; i < 5; ++i)
+ {
+ if (nodePoint->worldStates[i] == worldstate)
+ continue;
UpdateWorldState(nodePoint->worldStates[i], 0);
+ }
UpdateWorldState(worldstate, 1);
}