mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-29 14:01:29 +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)
|
||||
Perl_croak(aTHX_ "ent is nullptr, avoiding crash.");
|
||||
|
||||
THIS->RemoveFromHateList(ent);
|
||||
THIS->CastToMob()->RemoveFromHateList(ent);
|
||||
|
||||
}
|
||||
XSRETURN_EMPTY;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user