Skip to content

Commit 1dba2a4

Browse files
committed
Update Hooks.Harvester.cpp
1 parent a46eecb commit 1dba2a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ext/Unit/Hooks.Harvester.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ DEFINE_HOOK(0x73E730, UnitClass_MissionHarvest_HarvesterScanAfterUnload, 0x5)
3939
GET(UnitClass* const, pThis, EBP);
4040
GET(AbstractClass* const, pFocus, EAX);
4141

42+
auto pType = pThis->Type;
4243
// Focus is set when the harvester is fully loaded and go home.
43-
if (pFocus && TechnoTypeExt::ExtMap.Find(pThis->Type)->HarvesterScanAfterUnload.Get(RulesExt::Global()->HarvesterScanAfterUnload))
44+
if (pFocus && !pType->Weeder && TechnoTypeExt::ExtMap.Find(pType)->HarvesterScanAfterUnload.Get(RulesExt::Global()->HarvesterScanAfterUnload))
4445
{
4546
auto cellBuffer = CellStruct::Empty;
4647
const auto pCellStru = pThis->ScanForTiberium(&cellBuffer, RulesClass::Instance->TiberiumLongScan / Unsorted::LeptonsPerCell, 0);

0 commit comments

Comments
 (0)