Project

General

Profile

Actions

Bug #86

closed

api_methods_city_inspire_partisans() divide by zero when city_size_get() returns zero

Added by Marko Lindqvist 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
12/28/2023
Due date:
% Done:

0%

Estimated time:

Description

api_methods_city_inspire_partisans() divides by the value returned by city_size_get(). That leads to clang analyzer warning, as city_size_get() can return zero. It shouldn't be possible return value when called here, though.


Files

Actions

Also available in: Atom PDF