X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=9502c8b039228e1e8e5ac790d66dae43a6772812;hp=9971cb5eb18c92bb9bfcf4b38cfc78b8570d167f;hb=ff9c73a37d898d824aa9f8ecd4b670acd84d37e7;hpb=195e6e149b401cd8d27f406834c7f54a8cca4909 diff --git a/misc.c b/misc.c index 9971cb5..9502c8b 100644 --- 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;