mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 12:42:43 -04:00
Core/SAI: Fix a possible crash in SMART_ACTION_SET_ORIENTATION with SMART_TARGET_SELF for TempSummons
This commit is contained in:
@@ -1238,7 +1238,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
ObjectList* targets = GetTargets(e, unit);
|
||||
if (e.GetTargetType() == SMART_TARGET_SELF)
|
||||
me->SetFacing(me->GetCreatureData()->orientation, NULL);
|
||||
me->SetFacing(me->GetHomePosition().GetOrientation(), NULL);
|
||||
else if (e.GetTargetType() == SMART_TARGET_POSITION)
|
||||
me->SetFacing(e.target.o, NULL);
|
||||
else if (targets && !targets->empty())
|
||||
|
||||
Reference in New Issue
Block a user