mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue