Remove some hard-coded array dimensions. Generate CLSSES at compile time.
[open-adventure.git] / newdb.c
diff --git a/newdb.c b/newdb.c
index 05b0eeb1dfa3c6e5329c1a0272505740a9fe0b4e..427661813be5bbc25397c4d2a5045d553f9443c6 100644 (file)
--- a/newdb.c
+++ b/newdb.c
@@ -1298,3 +1298,5 @@ char* turn_threshold_messages[] = {
   "Are you still at it?  Five points off for exceeding 1000 turns!",
   "Good grief, don\'t you *EVER* give up?  Do you realize you\'ve spent\nover 2500 turns at this?  That\'s another ten points off, a total of\ntwenty points lost for taking so long.",
 };
+
+size_t CLSSES = sizeof(class_messages) / sizeof(class_messages[0]);