X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=include%2Fitem.h;h=dcebcc6f6d69cfcda41429a43bb20c619e962677;hp=9923d218ea0b700ca69a4985c6e7c90f6b0b417b;hb=HEAD;hpb=d3a64a4f6e8aa1dc1ee027086aa9b280864e80e4 diff --git a/include/item.h b/include/item.h index 9923d218e..dcebcc6f6 100644 --- a/include/item.h +++ b/include/item.h @@ -1,6 +1,6 @@ /* * Empire - A multi-player, client/server Internet based war game. - * Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak, + * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak, * Ken Stevens, Steve McClure, Markus Armbruster * * Empire is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ * item.h: Definitions for item characteristics stuff * * Known contributors to this file: - * Markus Armbruster, 2004-2016 + * Markus Armbruster, 2004-2020 */ #ifndef ITEM_H @@ -80,7 +80,8 @@ struct ichrstr { /* variables using this structure */ -extern struct ichrstr ichr[I_MAX + 2]; +#define ICHR_SZ (I_MAX + 2) +extern struct ichrstr ichr[ICHR_SZ]; /* procedures using/returning this struct */