diff options
author | jackpoz <giacomopoz@gmail.com> | 2013-10-22 22:59:47 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2013-10-22 22:59:47 +0200 |
commit | cdcee93854adf07c77e5b837a1fb85795d371b2d (patch) | |
tree | df23dd637398e18957557d280ceafb2e15b9217b | |
parent | 635e1467a4a57d78c93c80b6b2f073dff1cf671d (diff) |
Core/IoC: Fix uninitialized timer
Fix uninitialized Docks timer in Isle Of Conquest .
Valgrind log:
Conditional jump or move depends on uninitialised value(s)
at : BattlegroundIC::HandleCapturedNodes(ICNodePoint*, bool) (BattlegroundIC.cpp:665)
by : BattlegroundIC::PostUpdateImpl(unsigned int) (BattlegroundIC.cpp:228)
by : Battleground::Update(unsigned int) (Battleground.cpp:300)
by : BattlegroundMgr::Update(unsigned int) (BattlegroundMgr.cpp:93)
by : World::Update(unsigned int) (World.cpp:2062)
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp index 82d7de0d9bf..bdc9fa36328 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp @@ -45,6 +45,7 @@ BattlegroundIC::BattlegroundIC() closeFortressDoorsTimer = CLOSE_DOORS_TIME; // the doors are closed again... in a special way doorsClosed = false; + docksTimer = DOCKS_UPDATE_TIME; resourceTimer = IC_RESOURCE_TIME; for (uint8 i = NODE_TYPE_REFINERY; i < MAX_NODE_TYPES; ++i) |