mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Warnings] Fix warnings
This commit is contained in:
@@ -4115,7 +4115,8 @@ bool BGTactics::selectObjective(bool reset)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -4503,7 +4504,7 @@ bool BGTactics::atFlag(std::vector<BattleBotPath*> const& vPaths, std::vector<ui
|
||||
if (f == vFlagIds.end())
|
||||
continue;
|
||||
|
||||
if (!go->isSpawned() || !go->GetGoState() == GO_STATE_READY)
|
||||
if (!go->isSpawned() || go->GetGoState() != GO_STATE_READY)
|
||||
continue;
|
||||
|
||||
if (!bot->CanUseBattlegroundObject(go) && bgType != BATTLEGROUND_WS)
|
||||
@@ -4644,6 +4645,8 @@ bool BGTactics::atFlag(std::vector<BattleBotPath*> const& vPaths, std::vector<ui
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user