X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=include%2Fupdate.h;h=ef0dc7dfba93ce05c74c73198e4e1e2e59bcfbea;hp=830367a49ac0fe0540409b22e7b22a03faffb905;hb=6bad4643483d99a7e8cfa4251646ae7f162bfa1b;hpb=d1b844c6eb1ed7a25652d1fccb0de96e6aa2d5d3 diff --git a/include/update.h b/include/update.h index 830367a49..ef0dc7dfb 100644 --- a/include/update.h +++ b/include/update.h @@ -28,7 +28,7 @@ * * Known contributors to this file: * Ville Virrankoski, 1995 - * Markus Armbruster, 2004-2016 + * Markus Armbruster, 2004-2020 */ #ifndef UPDATE_H @@ -59,7 +59,7 @@ struct budg_item { /* A nation's budget for an update */ struct budget { /* production by sector type */ - struct budg_item prod[SCT_TYPE_MAX + 1]; + struct budg_item prod[ARRAY_SIZE(dchr) - 1]; /* level production output */ float level[4]; /* building and maintenance */