From 9b8664daf17dac9efb1f4add9d00c562e4ddbf40 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 1 Nov 2025 08:58:34 +0100 Subject: fix tests --- src/countries.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/countries.cpp') 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 -- cgit v1.2.3-70-g09d2