Clang analyzer is warning that there's potential div by zero in api_methods_city_inspire_partisans(). There isn't - city always has some citizens. But the code could be simplified, and likely we would get rid of the warning as a bonus. As we now count all the citizens, could as well us city size directly.
Clang analyzer is warning that there's potential div by zero in api_methods_city_inspire_partisans(). There isn't - city always has some citizens. But the code could be simplified, and likely we would get rid of the warning as a bonus. As we now count all the citizens, could as well us city size directly.