Skip to content

Commit 8d1ed2b

Browse files
authored
Merge pull request #5642 from ab9rf/enum-linked-arrays
adjustments for change in `announcement_alert_type` enum
2 parents a6ed266 + 6480452 commit 8d1ed2b

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)