diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-01-21 21:59:23 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-01-21 22:02:14 +0000 |
commit | 670488716dde7ba7813dd281f24403a0b24d8690 (patch) | |
tree | 9b138c009e4131e32ed7bf4645e3eba7f8a5b18d /src/hud.c | |
parent | 506f095bcb528468f25a637977efcc408590ae67 (diff) |
Rethink mem_loadoffset, and consequently, kill it
Suggested by bill. Having something semantically pointer-sized that's
only ever used for stuff that's always 32-bit doesn't really make sense.
Note that I intentionally did not add a copyright line for myself in
hud.c because, I mean, come on. I'll just say I waive any claim to that
tiny trivial change.
Diffstat (limited to 'src/hud.c')
-rw-r--r-- | src/hud.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ static bool find_toolspanel(void *enginevgui) { // pointer to the specified panel if (p[0] == X86_CALL) { typedef void *(*VCALLCONV GetRootPanel_func)(void *this, int); - int off = mem_load32(p + 1); + int off = mem_loads32(p + 1); GetRootPanel_func GetRootPanel = (GetRootPanel_func)(p + 5 + off); toolspanel = GetRootPanel(enginevgui, /*PANEL_TOOLS*/ 3); return true; |