SAI & Scripts: Fix unitialized values found by Valgrind
==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x19B3031: boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::UpdateAI(unsigned int) (boss_skarvald_dalronn.cpp:217) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x19B3948: boss_dalronn_the_controller::boss_dalronn_the_controllerAI::UpdateAI(unsigned int) (boss_skarvald_dalronn.cpp:388) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x15E2FCC: SmartScript::ProcessAction(SmartScriptHolder&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:144) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x191CB98: dummy_dragonAI::UpdateAI(unsigned int) (boss_sartharion.cpp:961) ==3064== by 0x191D242: npc_shadron::npc_shadronAI::UpdateAI(unsigned int) (boss_sartharion.cpp:1122) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x19AE913: boss_ymiron::boss_ymironAI::UpdateAI(unsigned int) (boss_ymiron.cpp:215) ==3064== Use of uninitialised value of size 8 ... ==3064== by 0x18A9F4A: boss_illidan_stormrage::boss_illidan_stormrageAI::Reset() (boss_illidan.cpp:1805) ==3064== Conditional jump or move depends on uninitialised value(s) ... ==3064== by 0x18A9F4A: boss_illidan_stormrage::boss_illidan_stormrageAI::Reset() (boss_illidan.cpp:1805) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x191CB98: dummy_dragonAI::UpdateAI(unsigned int) (boss_sartharion.cpp:961) ==3064== by 0x191CE88: npc_tenebron::npc_tenebronAI::UpdateAI(unsigned int) (boss_sartharion.cpp:1027) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x191CB98: dummy_dragonAI::UpdateAI(unsigned int) (boss_sartharion.cpp:961) ==3064== by 0x191D5B8: npc_vesperon::npc_vesperonAI::UpdateAI(unsigned int) (boss_sartharion.cpp:1220) ==3064== Conditional jump or move depends on uninitialised value(s) ... ==3064== by 0x1868F59: boss_lady_vashj::boss_lady_vashjAI::Reset() (boss_lady_vashj.cpp:206) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x191C14C: dummy_dragonAI::MovementInform(unsigned int, unsigned int) (boss_sartharion.cpp:802) ==3064== Conditional jump or move depends on uninitialised value(s) ==3064== at 0x1046986: Position::NormalizeOrientation(float) (Object.h:388) ... ==3064== by 0x17D9463: boss_malchezaar::boss_malchezaarAI::SummonInfernal(unsigned int) (boss_prince_malchezaar.cpp:373)
This commit is contained in:
@@ -2231,6 +2231,7 @@ SmartScriptHolder SmartScript::CreateEvent(SMART_EVENT e, uint32 event_flags, ui
|
||||
script.event.raw.param4 = event_param4;
|
||||
script.event.event_phase_mask = phaseMask;
|
||||
script.event.event_flags = event_flags;
|
||||
script.event.event_chance = 100;
|
||||
|
||||
script.action.type = action;
|
||||
script.action.raw.param1 = action_param1;
|
||||
|
||||
Reference in New Issue
Block a user