diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-01-12 20:23:13 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-01-12 20:23:13 +0100 |
commit | b8625f41bd6131e7fb3ff126780da18d5d2959fd (patch) | |
tree | a873f70261a5abd618fd17519bccee890b0e7ec6 /src/server/game/Handlers/GuildFinderHandler.cpp | |
parent | de1d75af7085509084857586d0d03cfe51c5c0de (diff) |
Core/SAI: Fix crash in SmartScript
Fix crash in SmartScript storing WorldObject* instead of guid as targets in SmartScript::mTargetStorage , used by SMART_TARGET_STORED target type , SMART_ESCORT_TARGETS and other escort related code.
Fixes #11228 , #10157 .
Valgrind log:
Invalid read of size 4
at : Object::GetTypeId() const (Object.h:140)
by : SmartScript::IsPlayer(WorldObject*) (SmartScript.h:73)
by : SmartScript::ProcessAction(SmartScriptHolder&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:330)
by : SmartScript::ProcessEvent(SmartScriptHolder&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:2662)
by : SmartScript::ProcessAction(SmartScriptHolder&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:2226)
by : SmartScript::ProcessTimedAction(SmartScriptHolder&, unsigned int const&, unsigned int const&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:2238)
by : SmartScript::ProcessEvent(SmartScriptHolder&, Unit*, unsigned int, unsigned int, bool, SpellInfo const*, GameObject*) (SmartScript.cpp:2685)
by : SmartScript::UpdateTimer(SmartScriptHolder&, unsigned int) (SmartScript.cpp:3198)
by : SmartScript::OnUpdate(unsigned int) (SmartScript.cpp:3244)
by : SmartAI::UpdateAI(unsigned int) (SmartAI.cpp:331)
by : Creature::Update(unsigned int) (Creature.cpp:544)
by : void Trinity::ObjectUpdater::Visit<Creature>(GridRefManager<Creature>&) (GridNotifiers.cpp:340)
Diffstat (limited to 'src/server/game/Handlers/GuildFinderHandler.cpp')
0 files changed, 0 insertions, 0 deletions