aboutsummaryrefslogtreecommitdiff
path: root/src/headless/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless/main.cpp')
-rw-r--r--src/headless/main.cpp27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/headless/main.cpp b/src/headless/main.cpp
index 3c9fc8b..9a054e3 100644
--- a/src/headless/main.cpp
+++ b/src/headless/main.cpp
@@ -35,24 +35,15 @@ static void print_rgo(ProvinceInstance const& province) {
);
}
else {
- GoodDefinition const* const output_good = production_type->get_output_good();
- if(output_good == nullptr) {
- Logger::error(
- "\n ", province.get_identifier(),
- " - good: nullptr",
- ", production_type: ", production_type->get_identifier()
- );
- }
- else {
- Logger::info(
- "\n ", province.get_identifier(),
- " - good: ", output_good->get_identifier(),
- ", production_type: ", production_type->get_identifier(),
- ", size_multiplier: ", rgo.get_size_multiplier().to_string(3),
- ", output_quantity_yesterday: ", rgo.get_output_quantity_yesterday().to_string(3),
- ", revenue_yesterday: ", rgo.get_revenue_yesterday().to_string(3)
- );
- }
+ GoodDefinition const& output_good = production_type->get_output_good();
+ Logger::info(
+ "\n ", province.get_identifier(),
+ " - good: ", output_good.get_identifier(),
+ ", production_type: ", production_type->get_identifier(),
+ ", size_multiplier: ", rgo.get_size_multiplier().to_string(3),
+ ", output_quantity_yesterday: ", rgo.get_output_quantity_yesterday().to_string(3),
+ ", revenue_yesterday: ", rgo.get_revenue_yesterday().to_string(3)
+ );
}
}