aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2013-11-29 11:52:16 -0800
committerShauren <shauren.trinity@gmail.com>2013-11-29 11:52:16 -0800
commitb27f2f753bb80d3861f416a70325414eb434144f (patch)
tree56ae9ac9d1640b6b831f835059680a5c261b3705 /src
parent4416c1604558506346e7ca6d0ff6ec7fc502215c (diff)
parentaef2d3963152e44ea12f869f0fe3b987b85538a8 (diff)
Merge pull request #11272 from gerripeach/pull_request6
Core/BG: Isle of Conquest - fix worldstates
Diffstat (limited to 'src')
-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);
}