Skip to content

Commit

Permalink
Merge branch 'develop-BuildingQueue' into develop-Mix4BEtest
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimRecya committed Jan 23, 2025
2 parents 1f9b89f + 5d7e84a commit 26157ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Ext/Building/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,7 @@ DEFINE_HOOK(0x4FAAD8, HouseClass_AbandonProduction_RewriteForBuilding, 0x8)
GET(const AbstractType, absType, EBP);
GET(FactoryClass* const, pFactory, ESI);

const auto dontCare = buildCat == BuildCat::DontCare;

if (dontCare || all)
if (buildCat == BuildCat::DontCare || all)
{
const auto pType = TechnoTypeClass::GetByTypeAndIndex(absType, index);
const auto firstRemoved = pFactory->RemoveOneFromQueue(pType);
Expand All @@ -563,7 +561,7 @@ DEFINE_HOOK(0x4FAAD8, HouseClass_AbandonProduction_RewriteForBuilding, 0x8)
return Return;
}

return dontCare ? CheckSame : CheckSame;
return CheckSame;
}

if (!pFactory->Object)
Expand Down

0 comments on commit 26157ee

Please sign in to comment.