X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=include%2Fupdate.h;h=ef0dc7dfba93ce05c74c73198e4e1e2e59bcfbea;hp=830367a49ac0fe0540409b22e7b22a03faffb905;hb=a374e6435dfb7eb2035ca564ed6a037e7c6bf97b;hpb=5e458599795dd4e7d1ffbbb5766d9fb106eb8d27 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 */