diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-10-29 14:49:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 14:49:01 +0100 |
commit | f8dc23edac88176356edcc5b1aaeaa5ecb22798e (patch) | |
tree | 91712ee4712960c6d0010d61d9bad81fbb635f73 /src | |
parent | 0f2074fc51cfab930e2a672125c1625d9a47fb06 (diff) | |
parent | f0a2711dc57f47fbcea0616f02ed6923d1822da8 (diff) |
Merge pull request #217 from OpenVicProject/allow_unit_icon_0
Allow unit icon to be 0
Diffstat (limited to 'src')
-rw-r--r-- | src/openvic-simulation/military/UnitType.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/military/UnitType.cpp b/src/openvic-simulation/military/UnitType.cpp index 920f28b..c185154 100644 --- a/src/openvic-simulation/military/UnitType.cpp +++ b/src/openvic-simulation/military/UnitType.cpp @@ -116,8 +116,8 @@ static bool _check_shared_parameters(std::string_view identifier, UnitType::unit return false; } - if (unit_args.icon <= 0) { - Logger::error("Invalid icon for unit ", identifier, " - ", unit_args.icon, " (must be positive)"); + if (unit_args.icon < 0) { + Logger::error("Invalid icon for unit ", identifier, " - ", unit_args.icon, " (must be >= 0)"); return false; } |