From 648045289e97a89c459d0cfb79edf9bfe2f3f032 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Mon, 17 Nov 2025 12:32:37 -0600 Subject: [PATCH] adjustments for change in `announcement_alert_type` enum for compatibility with DFHack/df-structures#859 --- library/modules/Gui.cpp | 2 ++ library/xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 3808fa0271..1e079da598 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -1957,6 +1957,8 @@ bool Gui::addCombatReport(df::unit *unit, df::unit_report_type slot, df::report auto alert_type = announcement_alert_type::NONE; switch (slot) { + case unit_report_type::NONE: /* should never happen? */ + return false; case unit_report_type::Combat: world->status.flags.bits.combat = true; alert_type = announcement_alert_type::COMBAT; diff --git a/library/xml b/library/xml index 145f317340..01c3774730 160000 --- a/library/xml +++ b/library/xml @@ -1 +1 @@ -Subproject commit 145f317340ac9327854318c7ba758ee2af5e1928 +Subproject commit 01c3774730e2c89b2a4a7894c03f43a91b8db0a7