diff --git a/common/shareddb.cpp b/common/shareddb.cpp index 98f02fada..3ebd0e97e 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -746,7 +746,7 @@ bool SharedDatabase::GetInventory(Client *c) inst->SetColor(color); } - if (charges > std::numeric_limits::max()) { + if (charges >= std::numeric_limits::max()) { inst->SetCharges(-1); } else if (charges == 0 && inst->IsStackable()) { // Stackable items need a minimum charge of 1 remain moveable.