From ee25a8d276bbcc6c0a281aca474b947b2a6f107b Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 5 Sep 2026 10:58:55 +0700 Subject: [PATCH] Unify `FUNC_100B46D0` on the `DWORD *` return two lanes declared differently --- saco/game/util.cpp | 8 ++++---- saco/game/util.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/saco/game/util.cpp b/saco/game/util.cpp index 3c0a06b..11131fc 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1616,16 +1616,16 @@ void __stdcall FUNC_100B4630(int iModel, int a2) //----------------------------------------------------------- -DWORD __stdcall FUNC_100B46D0(int iModel) +DWORD * __stdcall FUNC_100B46D0(int iModel) { DWORD *pModelInfo = GetModelInfo(iModel); - DWORD dwRet = 0; + DWORD *pRet = 0; _asm mov eax, pModelInfo _asm mov edx, [eax+0x14] - _asm mov dwRet, edx + _asm mov pRet, edx - return dwRet; + return pRet; } //----------------------------------------------------------- diff --git a/saco/game/util.h b/saco/game/util.h index 252aeb7..a3dfcfe 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -137,7 +137,6 @@ DWORD __stdcall FUNC_100B45A0(int iModel); // .text:100B45A0 void __stdcall FUNC_100B45D0(int iModel, int a2); // .text:100B45D0 void __stdcall FUNC_100B4600(int iModel, int a2); // .text:100B4600 void __stdcall FUNC_100B4630(int iModel, int a2); // .text:100B4630 -DWORD __stdcall FUNC_100B46D0(int iModel); // .text:100B46D0 WORD __stdcall FUNC_100B4700(int iModel); // .text:100B4700 void __stdcall FUNC_100B4730(int iModel, WORD wValue); // .text:100B4730 BOOL __stdcall FUNC_100B44E0(DWORD *pModelInfo); // .text:100B44E0