Skip to content

Commit 2f53fb5

Browse files
committed
Fix fake thiscall
1 parent 303e3e9 commit 2f53fb5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

YRpp

Submodule YRpp updated 1 file

src/Ext/Building/Hooks.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,10 @@ 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
{
177-
auto coords = MapClass::Instance.GetCellAt(pThis->Owner->EMPTarget)->GetCellCoords();
178-
*buffer = pThis->GetFLH(EMPulseCannonTemp::weaponIndex, coords);
179-
return buffer;
177+
*pCrd = pThis->GetFLH(EMPulseCannonTemp::weaponIndex);
178+
return pCrd;
180179
}
181180

182181
DEFINE_FUNCTION_JUMP(CALL6, 0x44D1F9, BuildingClass_GetFireCoords_Wrapper);

0 commit comments

Comments
 (0)