summaryrefslogtreecommitdiff
path: root/src/countries.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-11-01 08:58:34 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-11-01 08:58:34 +0100
commit9b8664daf17dac9efb1f4add9d00c562e4ddbf40 (patch)
tree6c3396be134996ee3ce75b0ff9a2eca09452104d /src/countries.cpp
parent60488d722bf29f3ff0ce3e08b90f30523a8d7b6d (diff)
fix tests
Diffstat (limited to 'src/countries.cpp')
-rw-r--r--src/countries.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/countries.cpp b/src/countries.cpp
index 337b10b..34aacf1 100644
--- a/src/countries.cpp
+++ b/src/countries.cpp
@@ -312,5 +312,7 @@ u32 country::get_available_tax_rates(char* country_code, tax_rate* buffer, u32 b
s32 index = get_index_by_country_code(country_code);
assert(index != -1);
+ if (!country_map[index].get_available_tax_rates) return 0;
+
return country_map[index].get_available_tax_rates(buffer, buffer_size);
} \ No newline at end of file