Skip to content
Permalink
Browse files
Fix missing check for 0 in craft replacements
  • Loading branch information
TeTpaAka authored and est31 committed Jul 4, 2015
1 parent 7b171ea commit 87b9cdab07f70a7f2dd6531650242b0893eb5930
Showing 1 changed file with 2 additions and 2 deletions.
@@ -235,8 +235,8 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
}
}
}
// No replacement was found, simply decrement count to zero
if (!found_replacement)
// No replacement was found, simply decrement count by one
if (!found_replacement && it->count > 0)
it->remove(1);
}
}

0 comments on commit 87b9cda

Please sign in to comment.