From 7e05aaccf0e13299702ddeed17661831c3ddc692 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sat, 10 Aug 2024 23:40:07 +0100 Subject: Assorted minor fixes (clang-format.sh shebang, parse national foci scripts, factor song chance, update openvic-dataloader) --- src/openvic-simulation/military/UnitInstanceGroup.cpp | 1 - src/openvic-simulation/military/UnitType.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/openvic-simulation/military') diff --git a/src/openvic-simulation/military/UnitInstanceGroup.cpp b/src/openvic-simulation/military/UnitInstanceGroup.cpp index 07736f3..65ecf5b 100644 --- a/src/openvic-simulation/military/UnitInstanceGroup.cpp +++ b/src/openvic-simulation/military/UnitInstanceGroup.cpp @@ -155,7 +155,6 @@ UnitInstanceGroupBranched::UnitInstanceGroupBranched( std::vector&& new_units ) : UnitInstanceGroup { new_name, std::move(new_units) } {} - fixed_point_t UnitInstanceGroupBranched::get_total_consumed_supply() const { fixed_point_t total_consumed_supply = 0; diff --git a/src/openvic-simulation/military/UnitType.cpp b/src/openvic-simulation/military/UnitType.cpp index fb65bf8..11f7221 100644 --- a/src/openvic-simulation/military/UnitType.cpp +++ b/src/openvic-simulation/military/UnitType.cpp @@ -151,7 +151,7 @@ bool UnitTypeManager::load_unit_type_file( ) { using namespace std::string_view_literals; auto type_symbol = parser.find_intern("type"sv); - if(!type_symbol) { + if (!type_symbol) { Logger::error("type could not be interned."); } -- cgit v1.2.3-56-ga3b1