Structurize the informaruin about dwarves.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 9971cb5eb18c92bb9bfcf4b38cfc78b8570d167f..9502c8b039228e1e8e5ac790d66dae43a6772812 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -672,9 +672,9 @@ int atdwrf(loc_t where)
         return at;
     at = -1;
     for (int i = 1; i <= NDWARVES - 1; i++) {
-        if (game.dloc[i] == where)
+        if (game.dwarves[i].loc == where)
             return i;
-        if (game.dloc[i] != 0)
+        if (game.dwarves[i].loc != 0)
             at = 0;
     }
     return at;