diff --git a/src/lib/global/land.c b/src/lib/global/land.c index c0d51e0b..b2f7a7f3 100644 --- a/src/lib/global/land.c +++ b/src/lib/global/land.c @@ -42,4 +42,4 @@ * Table of land unit types * Initialized on startup from land.config and deity custom config (if any). */ -struct lchrstr lchr[]; +struct lchrstr lchr[N_MAXLAND + 1]; diff --git a/src/lib/global/nuke.c b/src/lib/global/nuke.c index ce6a75fb..f8da09a6 100644 --- a/src/lib/global/nuke.c +++ b/src/lib/global/nuke.c @@ -40,4 +40,4 @@ * Table of nuke types * Initialized on startup from nuke.config and deity custom config (if any). */ -struct nchrstr nchr[]; +struct nchrstr nchr[N_MAXNUKE + 1]; diff --git a/src/lib/global/plane.c b/src/lib/global/plane.c index 915c602b..5dd72307 100644 --- a/src/lib/global/plane.c +++ b/src/lib/global/plane.c @@ -44,4 +44,4 @@ * Table of plane types * Initialized on startup from plane.config and deity custom config (if any). */ -struct plchrstr plchr[]; +struct plchrstr plchr[N_MAXPLANE + 1]; diff --git a/src/lib/global/ship.c b/src/lib/global/ship.c index 0c85245f..79b06465 100644 --- a/src/lib/global/ship.c +++ b/src/lib/global/ship.c @@ -44,4 +44,4 @@ * Table of ship types * Initialized on startup from ship.config and deity custom config (if any). */ -struct mchrstr mchr[]; +struct mchrstr mchr[N_MAXSHIPS + 1];