mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-31 04:37:11 +01:00
fix set outfit functionality
This commit is contained in:
@@ -509,6 +509,20 @@ uint16_t Player::getLookCorpse() const
|
||||
|
||||
void Player::addStorageValue(const uint32_t key, const int32_t value)
|
||||
{
|
||||
if (IS_IN_KEYRANGE(key, RESERVED_RANGE)) {
|
||||
if (IS_IN_KEYRANGE(key, OUTFITS_RANGE)) {
|
||||
outfits.emplace_back(
|
||||
value >> 16,
|
||||
value & 0xFF
|
||||
);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
std::cout << "Warning: unknown reserved key: " << key << " player: " << getName() << std::endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (value != -1) {
|
||||
storageMap[key] = value;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user