From df0c7c27cb8020722b6ffd31fa6ca6269c0f4841 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 26 Feb 2023 22:04:22 -0800 Subject: [PATCH] adjust to structures change --- library/modules/Units.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/library/modules/Units.cpp b/library/modules/Units.cpp index a636310e1..533b40ca8 100644 --- a/library/modules/Units.cpp +++ b/library/modules/Units.cpp @@ -588,19 +588,7 @@ bool Units::isMischievous(df::unit *unit) bool Units::isAvailableForAdoption(df::unit* unit) { CHECK_NULL_POINTER(unit); - auto refs = unit->specific_refs; - for(size_t i=0; itype; - if( reftype == df::specific_ref_type::PETINFO_PET ) - { - //df::pet_info* pet = ref->pet; - return true; - } - } - - return false; + return unit->flags3.bits.available_for_adoption; } bool Units::isPet(df::unit* unit)