Skip to content

Commit 8efc535

Browse files
committed
Fix fake thiscall
1 parent 303e3e9 commit 8efc535

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Ext/Building/Hooks.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ DEFINE_HOOK(0x44CEEC, BuildingClass_Mission_Missile_EMPulseSelectWeapon, 0x6)
172172
return SkipGameCode;
173173
}
174174

175-
CoordStruct* __fastcall BuildingClass_GetFireCoords_Wrapper(BuildingClass* pThis, CoordStruct* buffer, CoordStruct* pCrd, int weaponIndex)
175+
CoordStruct* __fastcall BuildingClass_GetFireCoords_Wrapper(BuildingClass* pThis, void* _, CoordStruct* pCrd, int weaponIndex)
176176
{
177177
auto coords = MapClass::Instance.GetCellAt(pThis->Owner->EMPTarget)->GetCellCoords();
178-
*buffer = pThis->GetFLH(EMPulseCannonTemp::weaponIndex, coords);
179-
return buffer;
178+
*pCrd = pThis->GetFLH(EMPulseCannonTemp::weaponIndex, coords);
179+
return pCrd;
180180
}
181181

182182
DEFINE_FUNCTION_JUMP(CALL6, 0x44D1F9, BuildingClass_GetFireCoords_Wrapper);

0 commit comments

Comments
 (0)