From ce36abce47d5285f9e03faf159b223e9863cd716 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Sat, 4 Jun 2022 15:46:02 -0700 Subject: [PATCH] Fixes --- library/modules/Gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 30577c5f8..84049045e 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -1481,7 +1481,7 @@ DFHACK_EXPORT int Gui::makeAnnouncement(df::announcement_type type, df::announce } else if (message.empty()) { - Core::printerr("Empty announcement %u\n", r.type); // DF would print this to errorlog.txt + Core::printerr("Empty announcement %u\n", type); // DF would print this to errorlog.txt return -1; } @@ -1516,7 +1516,7 @@ DFHACK_EXPORT int Gui::makeAnnouncement(df::announcement_type type, df::announce // Generate the report objects int report_idx = world->status.reports.size(); bool continued = false; - bool display = ((*gamemode == game_mode::ADVENTURE && a_flags.bits.A_DISPLAY) || (*gamemode == game_mode::DWARF && a_flags.bits.D_DISPLAY)); + bool display = ((*gamemode == game_mode::ADVENTURE && flags.bits.A_DISPLAY) || (*gamemode == game_mode::DWARF && flags.bits.D_DISPLAY)); for (size_t i = 0; i < results.size(); i++) {