diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-01-07 22:38:21 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-01-07 22:38:21 +0100 |
commit | 92ed5e8af1f8b1aac085fd9b0ea93afb2b6795d4 (patch) | |
tree | f141fe0afd8ff11a7037329ffd75f070d73d6e70 /src/server/game/Handlers/CharacterHandler.cpp | |
parent | a53e4a57565d3375a978effbbc32d3eed6aac7e3 (diff) |
Core/Misc: Include cleanup, 2023 edition
Diffstat (limited to 'src/server/game/Handlers/CharacterHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/CharacterHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index e63223554af..c4d6cd0f21d 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -534,12 +534,12 @@ bool WorldSession::MeetsChrCustomizationReq(ChrCustomizationReqEntry const* req, if (checkRequiredDependentChoices) { - if (std::unordered_map<uint32, std::vector<uint32>> const* requiredChoices = sDB2Manager.GetRequiredCustomizationChoices(req->ID)) + if (std::vector<std::pair<uint32, std::vector<uint32>>> const* requiredChoices = sDB2Manager.GetRequiredCustomizationChoices(req->ID)) { - for (std::pair<uint32 const /*chrCustomizationOptionId*/, std::vector<uint32>> const& requiredChoicesForOption : *requiredChoices) + for (auto const& [chrCustomizationOptionId, requiredChoicesForOption] : *requiredChoices) { bool hasRequiredChoiceForOption = false; - for (uint32 requiredChoice : requiredChoicesForOption.second) + for (uint32 requiredChoice : requiredChoicesForOption) { auto choiceItr = std::find_if(selectedChoices.begin(), selectedChoices.end(), [requiredChoice](UF::ChrCustomizationChoice const& choice) { |