mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 09:17:15 +00:00
Merge pull request #87 from Valorith/copilot/sub-pr-80-78df83ab-fc86-4eda-900e-3a2f3889ead1
Fix unlimited charges sentinel round-trip in inventory load
This commit is contained in:
+1
-1
@@ -746,7 +746,7 @@ bool SharedDatabase::GetInventory(Client *c)
|
|||||||
inst->SetColor(color);
|
inst->SetColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (charges > std::numeric_limits<int16>::max()) {
|
if (charges >= std::numeric_limits<int16>::max()) {
|
||||||
inst->SetCharges(-1);
|
inst->SetCharges(-1);
|
||||||
} else if (charges == 0 && inst->IsStackable()) {
|
} else if (charges == 0 && inst->IsStackable()) {
|
||||||
// Stackable items need a minimum charge of 1 remain moveable.
|
// Stackable items need a minimum charge of 1 remain moveable.
|
||||||
|
|||||||
Reference in New Issue
Block a user