]> git.pond.sub.org Git - empserver/commitdiff
(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 19 Feb 2006 21:05:55 +0000 (21:05 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 19 Feb 2006 21:05:55 +0000 (21:05 +0000)
Add size to array declarations to compile in WIN32.

src/lib/global/land.c
src/lib/global/nuke.c
src/lib/global/plane.c
src/lib/global/ship.c

index c0d51e0be1fd473048b0343a19784a7ca7a1b0b0..b2f7a7f323e824d5b9760cd004aa77a1d185e591 100644 (file)
@@ -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];
index ce6a75fbcda9ce3b1d490f8d7f82592323a3b27e..f8da09a6b5809fbc314b8621a1cd62595fc0f3d6 100644 (file)
@@ -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];
index 915c602bd01c10192105195f9a5f1241223062e9..5dd7230709599c3963420d1ea06bbc2fcae38ae2 100644 (file)
@@ -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];
index 0c85245f91b5228c89bb3fabdd564b1dc935420d..79b064654a0c61e73876d42135c588dd9f6f5391 100644 (file)
@@ -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];