Zero-index the lookup tables and the code that references them.
[open-adventure.git] / dungeon.c
index 0c7ca63d499f08832f7466a7e2a5b70dc1e6da52..19b55c1652e230b8c2cad44f59f1356f57530a1f 100644 (file)
--- a/dungeon.c
+++ b/dungeon.c
@@ -200,7 +200,7 @@ void MAPLIN(FILE *OPENED) {
   LNLENG = 0;
   for (size_t i = 1; i <= sizeof(INLINE) && INLINE[i] != 0; ++i)
     {
-      char val = INLINE[i] + 1;
+      char val = INLINE[i];
       INLINE[i] = ascii_to_advent[(unsigned)val];
       if (INLINE[i] != 0)
        LNLENG = i;