@@ -95,7 +95,7 @@ DEFINE_HOOK(0x6FA6B7, TechnoClass_Update_RecordOldTarget, 0x6)
9595 {
9696 auto crd = pThis->GetCoords ();
9797 ExtendedAutoTargetingContext::OldTarget = pOldTarget;
98- ExtendedAutoTargetingContext::OldThreat = pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
98+ ExtendedAutoTargetingContext::OldThreat = ( int ) pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
9999 pThis->Target = 0 ;
100100 }
101101
@@ -115,7 +115,7 @@ DEFINE_HOOK(0x4DF3A0, TechnoClass_UpdateAttackMove_RecordOldTarget1, 0x6)
115115 {
116116 auto crd = pThis->GetCoords ();
117117 ExtendedAutoTargetingContext::OldTarget = pOldTarget;
118- ExtendedAutoTargetingContext::OldThreat = pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
118+ ExtendedAutoTargetingContext::OldThreat = ( int ) pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
119119 pThis->Target = 0 ;
120120 pThis->HaveAttackMoveTarget = false ;
121121 }
@@ -136,7 +136,7 @@ DEFINE_HOOK(0x4D6ED1, TechnoClass_MissionAreaGuard_RecordOldTarget, 0x6)
136136 {
137137 auto crd = pThis->ArchiveTarget ->GetCoords ();
138138 ExtendedAutoTargetingContext::OldTarget = pOldTarget;
139- ExtendedAutoTargetingContext::OldThreat = pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
139+ ExtendedAutoTargetingContext::OldThreat = ( int ) pThis->ThreatCoeffients (static_cast <ObjectClass*>(pOldTarget), &crd);
140140 pThis->Target = 0 ;
141141 }
142142
@@ -148,7 +148,7 @@ DEFINE_HOOK(0x6F8E1F, TechnoClass_SelectAutoTarget_UseContext, 0x6)
148148{
149149 if (!RulesExt::Global ()->ExtendedAutoTargeting )
150150 return 0 ;
151- GET (TechnoClass*, pThis, ECX);
151+
152152 R->Stack (STACK_OFFSET (0x6C , -0x4C ), ExtendedAutoTargetingContext::OldTarget);
153153 R->Stack (STACK_OFFSET (0x6C , -0x50 ), ExtendedAutoTargetingContext::OldThreat);
154154 return 0 ;
0 commit comments