<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40616 >
> [james.mccl...@gmail.com - Wed Dec 31 22:12:35 2008]: > > Using O_MAX rather than O_COUNT does work. Moving the definition > out of the function into file scope does not work.. Interesting. So I assume the attached patch completely fixes the compilation problems? ----------------------------------------------------------------------- ですが、全然分かりません。
diff --git a/client/gui-gtk-2.0/repodlgs.c b/client/gui-gtk-2.0/repodlgs.c index 7f40ea1..1272966 100644 --- a/client/gui-gtk-2.0/repodlgs.c +++ b/client/gui-gtk-2.0/repodlgs.c @@ -1178,7 +1178,7 @@ void activeunits_report_dialog_update(void) { struct repoinfo { int active_count; - int upkeep[O_COUNT]; + int upkeep[O_MAX]; int building_count; };
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev