From 2abe6f758baf27379f354d83174d27598003ff91 Mon Sep 17 00:00:00 2001 From: Xaver-DaRed Date: Wed, 4 Sep 2024 16:22:22 +0200 Subject: [PATCH] Clean craft container on invalid recipe --- src/map/utils/synthutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/utils/synthutils.cpp b/src/map/utils/synthutils.cpp index b3a785d8c63..bf2104d2799 100644 --- a/src/map/utils/synthutils.cpp +++ b/src/map/utils/synthutils.cpp @@ -828,6 +828,8 @@ namespace synthutils if (!isRightRecipe(PChar)) { + PChar->CraftContainer->Clean(); + return 0; }