Project

General

Profile

Bug #1111 ยป 0070-city_support-Fix-martial-law-unit-ordering.patch

Marko Lindqvist, 11/15/2024 05:58 PM

View differences:

common/city.c
if (sel_count < max_mart_units) {
best_units[sel_count++] = current;
} else if (current > best_units[max_mart_units - 1]) {
for (i = max_mart_units - 1; i >= 0 && current > best_units[i]; i++) {
for (i = max_mart_units - 1; i >= 0 && current > best_units[i]; i--) {
if (i + 1 < max_mart_units) {
best_units[i + 1] = best_units[i];
}
    (1-1/1)