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:
hateborne 2015-05-25 10:44:15 -04:00
parent cbcaead8df
commit 1bcb5c72a5

View File

@ -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;