Compile bug fixes.

This commit is contained in:
whipowill
2022-05-20 12:41:13 -05:00
parent 9a6709f5c1
commit 92ce54a3cd
42 changed files with 182 additions and 182 deletions

View File

@@ -15,9 +15,9 @@ struct Mail;
class MailProcessor
{
public:
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; } // unused param - whipowill
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; }
virtual bool Process(uint32 index, Mail* mail, PlayerbotAI* botAI) = 0;
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; } // unused param - whipowill
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; }
static ObjectGuid FindMailbox(PlayerbotAI* botAI);

View File

@@ -1048,7 +1048,7 @@ bool MovementAction::Flee(Unit *target)
}
}
HostileReference* ref = target->getThreatMgr().getCurrentVictim();
HostileReference* ref = target->GetThreatMgr().getCurrentVictim();
if (ref && ref->getTarget() == bot) // bot is target - try to flee to tank or master
{
if (Group* group = bot->GetGroup())