mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-04 16:35:03 -05:00
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:
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user