Skip to content

Commit 812271d

Browse files
committed
fix: dereferenced pointer
1 parent 83618af commit 812271d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/scripts/Spells/spell_dk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class spell_dk_raise_ally : public SpellScript
155155
if (!targetGuid)
156156
return SPELL_FAILED_BAD_TARGETS;
157157

158-
Unit *target = ObjectAccessor::GetUnit(GetSpell()->GetCaster(), targetGuid);
158+
Unit *target = ObjectAccessor::GetUnit(*(GetSpell()->GetCaster()), targetGuid);
159159
Player *unitTarget = target ? target->ToPlayer() : nullptr;
160160
if (!unitTarget)
161161
return SPELL_FAILED_BAD_TARGETS;

0 commit comments

Comments
 (0)