Skip to content
Snippets Groups Projects
Commit aab50cd2 authored by Giuseppe Bilotta's avatar Giuseppe Bilotta Committed by Perttu Ahola
Browse files

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.
parent 96c30452
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment