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.master
parent
96c30452f9
commit
aab50cd2cc
|
@ -212,7 +212,7 @@ bool InventoryItem::dropOrPlace(ServerEnvironment *env,
|
||||||
s16 dropcount = getDropCount();
|
s16 dropcount = getDropCount();
|
||||||
if(count < 0 || count > dropcount)
|
if(count < 0 || count > dropcount)
|
||||||
count = dropcount;
|
count = dropcount;
|
||||||
if(count < 0 || count > getCount());
|
if(count < 0 || count > getCount())
|
||||||
count = getCount();
|
count = getCount();
|
||||||
if(count > 0)
|
if(count > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue