]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/ship.c
config: Slightly neater configuration table size macros
[empserver] / src / lib / global / ship.c
index 110ecdb62580755e794b839649febb398cafa8ab..f9adac2b888eb9f50fca59716d68ea6bb06b7a9b 100644 (file)
@@ -45,7 +45,7 @@
  * Initialized on startup from ship.config and deity custom config (if any).
  * Terminated by a sentinel with null m_name.
  */
-struct mchrstr mchr[SHP_TYPE_MAX + 2];
+struct mchrstr mchr[MCHR_SZ];
 
 #define logx(a, b) (log((a)) / log((b)))
 #define SHP_DEF(b, t) (t ? (b * (logx(t, 40.0) < 1.0 ? 1.0 : \