[saco] Implement/match CPlayerPed::FUNC_100AE960; the result local is declared before the ped pointer, which is what orders the two stack slots

This commit is contained in:
ricardoofnl
2026-09-05 08:09:57 +07:00
parent e04d49c02f
commit 371a18f009
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -1894,6 +1894,21 @@ int CPlayerPed::FUNC_100AC690()
}
//-----------------------------------------------------------
int CPlayerPed::FUNC_100AE960(int a1)
{
int iResult;
DWORD dwPedPtr = (DWORD)m_pPed;
_asm mov edi, dwPedPtr
_asm mov eax, a1
_asm mov edx, [edi+eax*4+0x488]
_asm mov eax, [edx+0x14]
_asm mov iResult, eax
return iResult;
}
//-----------------------------------------------------------
struc_13 * CPlayerPed::FUNC_100AE5D0()
{
if(m_bytePlayerNumber) return FUNC_100B43D0(m_bytePlayerNumber);
+1
View File
@@ -195,6 +195,7 @@ public:
int FUNC_100AEF60(); // .text:100AEF60
int FUNC_100AC690(); // .text:100AC690
int FUNC_100AE960(int a1); // .text:100AE960
struc_13 * FUNC_100AE5D0(); // .text:100AE5D0