Verbose logging also gives an error related to this: "4: Warning: calloc with size 0 at line 2662 of ../../../src/server/savegame/savegame3.c"
Reply To cazfi
Verbose logging also gives an error related to this: "4: Warning: calloc with size 0 at line 2662 of ../../../src/server/savegame/savegame3.c"
2023-02-27 02:43 Updated by: lachu
I think it was done.
With current rulesets, with no counters defined, savegames still contain:
[counters]
c0=128
c1=127
c2=125
c3=131
c4=130
c5=126
c6=132
c7=129
Maybe we should omit saving those "lists" of counter values, when there's zero counters to save? That first element (present even with zero-lenght lists) is the city id, for which the list applies to.