… | |
… | |
1233 | * pick it up. Note that this doesn't handle cases where an item may |
1233 | * pick it up. Note that this doesn't handle cases where an item may |
1234 | * use several locations. |
1234 | * use several locations. |
1235 | */ |
1235 | */ |
1236 | for (i = 0; i < NUM_BODY_LOCATIONS; i++) |
1236 | for (i = 0; i < NUM_BODY_LOCATIONS; i++) |
1237 | { |
1237 | { |
1238 | if (monster->body_info[i] && item->body_info[i]) |
1238 | if (monster->slot[i].info && item->slot[i].info) |
1239 | { |
1239 | { |
1240 | flag = 1; |
1240 | flag = 1; |
1241 | break; |
1241 | break; |
1242 | } |
1242 | } |
1243 | } |
1243 | } |