Skip to content

Commit

Permalink
Update player.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored Mar 30, 2024
1 parent 0e88e66 commit 7ba95f9
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 @@ -4925,7 +4925,7 @@ void Player::genReservedStorageRange() {
}

void Player::addOutfit(uint16_t lookType, uint8_t addons) {
for (const auto &[outfitPlayer, addonPlayer] : outfits) {
for (auto &[outfitPlayer, addonPlayer] : outfits) {
if (outfitPlayer == lookType) {
addonPlayer |= addons;
return;
Expand All @@ -4945,7 +4945,7 @@ bool Player::removeOutfit(uint16_t lookType) {
}

bool Player::removeOutfitAddon(uint16_t lookType, uint8_t addons) {
for (const auto &[outfitPlayer, addonPlayer] : outfits) {
for (auto &[outfitPlayer, addonPlayer] : outfits) {
if (outfitPlayer == lookType) {
addonPlayer &= ~addons;
return true;
Expand Down

0 comments on commit 7ba95f9

Please sign in to comment.