Skip to content

Commit

Permalink
Update player.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Mar 14, 2024
1 parent 8a2633a commit 5321873
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4918,6 +4918,14 @@ bool Player::canLogout() {
return !isPzLocked() && !hasCondition(CONDITION_INFIGHT);
}

void Player::genReservedStorageRange() {
// generate familiars range
uint32_t familiar_key = PSTRG_FAMILIARS_RANGE_START;
for (const FamiliarEntry &entry : familiars) {
storageMap[++familiar_key] = (entry.lookType << 16);
}
}

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

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

View workflow job for this annotation

GitHub Actions / cppcheck

[cppcheck] reported by reviewdog 🐶 Variable 'outfitPlayer' is not assigned a value. Raw Output: src/creatures/players/player.cpp:4930:Variable 'outfitPlayer' is not assigned a value.
if (outfitPlayer == lookType) {
Expand Down

0 comments on commit 5321873

Please sign in to comment.