Skip to content
Snippets Groups Projects
Commit 87b9cdab authored by TeTpaAka's avatar TeTpaAka Committed by est31
Browse files

Fix missing check for 0 in craft replacements

parent 7b171ea2
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment