diff --git a/src/gamelog.cpp b/src/gamelog.cpp --- a/src/gamelog.cpp +++ b/src/gamelog.cpp @@ -242,7 +242,11 @@ void Gamelog::Print(std::functiongrfid); - fmt::format_to(output_iterator, action_type == GLAT_LOAD ? "Missing NewGRF: " : "Removed NewGRF: "); + if (action_type == GLAT_LOAD) { + fmt::format_to(output_iterator, "Missing NewGRF: "); + } else { + fmt::format_to(output_iterator, "Removed NewGRF: "); + } AddGrfInfo(output_iterator, this->grfid, nullptr, gm != grf_names.end() ? gm->second.gc : nullptr); if (gm == grf_names.end()) { fmt::format_to(output_iterator, ". Gamelog inconsistency: GrfID was never added!");