Skip to content

Commit 6480452

Browse files
committed
adjustments for change in announcement_alert_type enum
for compatibility with DFHack/df-structures#859
1 parent a6ed266 commit 6480452

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/modules/Gui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,8 @@ bool Gui::addCombatReport(df::unit *unit, df::unit_report_type slot, df::report
19571957
auto alert_type = announcement_alert_type::NONE;
19581958
switch (slot)
19591959
{
1960+
case unit_report_type::NONE: /* should never happen? */
1961+
return false;
19601962
case unit_report_type::Combat:
19611963
world->status.flags.bits.combat = true;
19621964
alert_type = announcement_alert_type::COMBAT;

0 commit comments

Comments
 (0)