Skip to content

Commit

Permalink
Update player.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Mar 14, 2024
1 parent b1d024a commit d9c9f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4892,7 +4892,7 @@ bool Player::canWear(uint16_t lookType, uint8_t addons) const {
return true;
}
return false; // have lookType on list and addons don't match
}
}
}
return false;
}
Expand All @@ -4919,7 +4919,7 @@ bool Player::canLogout() {
}

void Player::addOutfit(uint16_t lookType, uint8_t addons) {
for (auto &[outfit, addon] : outfits) {
for (auto& [outfit, addon] : outfits) {

Check warning on line 4922 in src/creatures/players/player.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

[cppcheck] reported by reviewdog 🐶 Variable 'outfit' is not assigned a value. Raw Output: src/creatures/players/player.cpp:4922:Variable 'outfit' is not assigned a value.
if (outfit == lookType) {
addon |= addons;
return;
Expand Down

0 comments on commit d9c9f98

Please sign in to comment.