mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +08:00
BG Crash fixes
This commit is contained in:
@@ -4880,6 +4880,11 @@ bool ArenaTactics::Execute(Event event)
|
||||
|
||||
bool ArenaTactics::moveToCenter(Battleground* bg)
|
||||
{
|
||||
// Sanity check
|
||||
if (!bg)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
uint32 Preference = context->GetValue<uint32>("bg role")->Get();
|
||||
switch (bg->GetBgTypeID())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user