]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/plane.c
config: Slightly neater configuration table size macros
[empserver] / src / lib / global / plane.c
index 51575e2840409173bc9ae6fa6050029e349b7daf..9ad17e2ec10e36b44a40a8463bb3a8dcff83ab46 100644 (file)
@@ -45,7 +45,7 @@
  * Initialized on startup from plane.config and deity custom config (if any).
  * Terminated by a sentinel with null pl_name.
  */
-struct plchrstr plchr[PLN_TYPE_MAX + 2];
+struct plchrstr plchr[PLCHR_SZ];
 
 #define logx(a, b) (log((a)) / log((b)))
 #define PLN_ATTDEF(b, t) (b + ((b?1:0) * ((t/20)>10?10:(t/20))))