Fix conditional bug in inventory

A spurious semicolon after the conditional checking for the drop count
to be not higher than the owned count caused the subsequent
    count = getCount()
to be always executed. Fix by removing the extra semicolon.
This commit is contained in:
Giuseppe Bilotta 2011-12-01 09:13:43 +01:00 committed by Perttu Ahola
parent 96c30452f9
commit aab50cd2cc

@ -212,7 +212,7 @@ bool InventoryItem::dropOrPlace(ServerEnvironment *env,
s16 dropcount = getDropCount();
if(count < 0 || count > dropcount)
count = dropcount;
if(count < 0 || count > getCount());
if(count < 0 || count > getCount())
count = getCount();
if(count > 0)
{