Browse Source

Fix inconsistent craft replacements (#9250) (#12819)

Wuzzy 1 year ago
parent
commit
6eb7d57ed3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/craftdef.cpp

+ 1 - 0
src/craftdef.cpp

@@ -229,6 +229,7 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
 				rep.deSerialize(j->second, gamedef->idef());
 				item.remove(1);
 				found_replacement = true;
+				pairs.erase(j);
 				output_replacements.push_back(rep);
 				break;