mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01: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();
|
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
Block a user