Subversion Repositories eoserv

Compare Revisions

Ignore whitespace Rev 441 → Rev 442

/trunk/src/handlers/Item.cpp
365,7 → 365,7
 
amount = std::min<int>(amount, character->world->config["MaxDrop"]);
 
if (amount == 0)
if (amount <= 0)
{
return;
}
425,6 → 425,9
int id = reader.GetShort();
int amount = reader.GetInt();
 
if (amount <= 0)
return;
 
if (character->HasItem(id) >= amount)
{
character->DelItem(id, amount);