From ac5b6f337eb6963545c569e1aa1c0796241579b7 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 28 Sep 2013 22:18:19 +0200 Subject: Core/Scripts: Fix uninitialized values in The Black Morass Valgrind log: Conditional jump or move depends on uninitialised value(s) at 0x1798C2C: npc_medivh_bm::npc_medivh_bmAI::UpdateAI(unsigned int) (the_black_morass.cpp:192) by 0x11AEFC0: Creature::Update(unsigned int) (Creature.cpp:542) by 0x12E96F8: Trinity::ObjectUpdater::Visit(GridRefManager&) (GridNotifiersImpl.h:45) Conditional jump or move depends on uninitialised value(s) at 0x1798C7E: npc_medivh_bm::npc_medivh_bmAI::UpdateAI(unsigned int) (the_black_morass.cpp:200) by 0x11AEFC0: Creature::Update(unsigned int) (Creature.cpp:542) by 0x12E96F8: Trinity::ObjectUpdater::Visit(GridRefManager&) (GridNotifiersImpl.h:45) Conditional jump or move depends on uninitialised value(s) at 0x1798CB0: npc_medivh_bm::npc_medivh_bmAI::UpdateAI(unsigned int) (the_black_morass.cpp:205) by 0x11AEFC0: Creature::Update(unsigned int) (Creature.cpp:542) by 0x12E96F8: Trinity::ObjectUpdater::Visit(GridRefManager&) (GridNotifiersImpl.h:45) Conditional jump or move depends on uninitialised value(s) at 0x1798CE2: npc_medivh_bm::npc_medivh_bmAI::UpdateAI(unsigned int) (the_black_morass.cpp:210) by 0x11AEFC0: Creature::Update(unsigned int) (Creature.cpp:542) by 0x12E96F8: Trinity::ObjectUpdater::Visit(GridRefManager&) (GridNotifiersImpl.h:45) --- .../Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp index 08adcc9ad6d..70c569a3259 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/the_black_morass.cpp @@ -92,6 +92,10 @@ public: void Reset() OVERRIDE { SpellCorrupt_Timer = 0; + Check_Timer = 0; + Life75 = true; + Life50 = true; + Life25 = true; if (!instance) return; -- cgit v1.2.3