aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2013-10-22 22:59:47 +0200
committerjackpoz <giacomopoz@gmail.com>2013-10-22 22:59:47 +0200
commitcdcee93854adf07c77e5b837a1fb85795d371b2d (patch)
treedf23dd637398e18957557d280ceafb2e15b9217b /src
parent635e1467a4a57d78c93c80b6b2f073dff1cf671d (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)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp1
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)