Change the name of the KEY array to avoid an upcoming macro clash.
[open-adventure.git] / init.c
diff --git a/init.c b/init.c
index 6582a74df718669a7ed1e20ca0088096bab75bae..5ad3a80b7225c9fe72ea74c2cecdbc2ef1c2cd30 100644 (file)
--- a/init.c
+++ b/init.c
@@ -23,8 +23,8 @@ void initialise(void)
 
     for (int i = 1; i <= NLOCATIONS; i++) {
         game.abbrev[i] = 0;
-        if (!(locations[i].description.big == 0 || KEY[i] == 0)) {
-            int k = KEY[i];
+        if (!(locations[i].description.big == 0 || TKEY[i] == 0)) {
+            int k = TKEY[i];
             if (MOD(labs(TRAVEL[k]), 1000) == 1)
                conditions[i] |= (1 << COND_FORCED);
         }