From 6a641db29a3d3c015ccf19154a7c08c51f20f42b Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Thu, 3 Sep 2026 01:47:44 +0700 Subject: [PATCH] [saco] Match the `CUnkClass3` constructor; retail zeroes `field_89` with a loop, not `memset` --- saco/unkclass3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/saco/unkclass3.cpp b/saco/unkclass3.cpp index 85c13af..3876585 100644 --- a/saco/unkclass3.cpp +++ b/saco/unkclass3.cpp @@ -15,7 +15,8 @@ CUnkClass3::CUnkClass3(IDirect3DDevice9 *pD3DDevice) field_10 = 300; field_14 = 100; field_18 = 30; - memset(field_89, 0, sizeof(field_89)); + // retail zeroes this with a loop, not memset: the inline rep stosd sets edi up first + for(int i = 0; i < 516; i++) field_89[i] = 0; } void CUnkClass3::ResetDialogControls(CDXUTDialog *pDialog)