Project

General

Profile

Bug #2445 ยป 2445.patch

Dean Brown, 11/09/2026 05:47 AM

View differences:

common/city.h
/* Iterates over all output types in the game. */
/* Hacked so cpp will compile it without
* error: assigning to 'Output_type_id' (aka 'output_type_id')
* from incompatible type 'int'
* see RM #2445.
*/
#define output_type_iterate(output) \
{ \
Output_type_id output; \
\
for (output = 0; output < O_LAST; output++) {
for (int index = 0; index < (int)O_LAST; index++) {\
output = (Output_type_id) index;
#define output_type_iterate_end \
} \
    (1-1/1)