Confine use of STATE_NOTFOUND to macros.
[open-adventure.git] / saveresume.c
index ceda43c1671edb1dadffaedd81d9d0df99d74c9e..9c788d1c59f99a523a535e139c3842cc12b50aa3 100644 (file)
@@ -218,7 +218,7 @@ bool is_valid(struct game_t valgame)
     int temp_tally = 0;
     for (int treasure = 1; treasure <= NOBJECTS; treasure++) {
         if (objects[treasure].is_treasure) {
-            if (valgame.objects[treasure].prop == STATE_NOTFOUND) {
+            if (PROP_IS_NOTFOUND2(valgame, treasure)) {
                 ++temp_tally;
             }
         }