mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 21:02:41 +00:00
Fix unlimited charges sentinel: use >= instead of > for int16::max() check
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
2647b4b80d
commit
1e4691e44c
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user