[Warnings] Fix warnings

This commit is contained in:
Yunfan Li
2024-07-12 00:26:42 +08:00
parent db1cfa6abc
commit 266aa1ec88
9 changed files with 21 additions and 10 deletions

View File

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