summarylogtreecommitdiffstats
path: root/order-plugin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'order-plugin.patch')
-rw-r--r--order-plugin.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/order-plugin.patch b/order-plugin.patch
new file mode 100644
index 000000000000..7902c0f42f9c
--- /dev/null
+++ b/order-plugin.patch
@@ -0,0 +1,29 @@
+diff --unified --recursive --text dfhack/plugins/orders.cpp dfhack.new/plugins/orders.cpp
+--- dfhack/plugins/orders.cpp 2022-07-29 03:02:00.947413585 -0600
++++ dfhack.new/plugins/orders.cpp 2022-07-29 20:20:27.962705687 -0600
+@@ -540,10 +540,10 @@
+ }
+ else
+ {
+- delete order;
+-
+ out << COLOR_LIGHTRED << "Invalid item subtype for imported manager order: " << enum_item_key(order->item_type) << ":" << it["item_subtype"].asString() << std::endl;
+
++ delete order;
++
+ return CR_FAILURE;
+ }
+ }
+@@ -716,10 +716,10 @@
+ }
+ else
+ {
+- delete condition;
+-
+ out << COLOR_YELLOW << "Invalid item condition item subtype for imported manager order: " << enum_item_key(condition->item_type) << ":" << it2["item_subtype"].asString() << std::endl;
+
++ delete condition;
++
+ continue;
+ }
+ }