mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 19:32:24 +00:00
Making $npc->RemoveFromHateList actually work
$npc->RemoveFromHateList is a mob function, not an NPC function. Casting to Mob to let it work.
This commit is contained in:
parent
cbcaead8df
commit
1bcb5c72a5
@ -823,7 +823,7 @@ XS(XS_NPC_RemoveFromHateList)
|
|||||||
if(ent == nullptr)
|
if(ent == nullptr)
|
||||||
Perl_croak(aTHX_ "ent is nullptr, avoiding crash.");
|
Perl_croak(aTHX_ "ent is nullptr, avoiding crash.");
|
||||||
|
|
||||||
THIS->RemoveFromHateList(ent);
|
THIS->CastToMob()->RemoveFromHateList(ent);
|
||||||
|
|
||||||
}
|
}
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user