diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2016-10-31 16:24:25 +0300 |
commit | 921ee19e3abd24482921d85b38c0c4b3d0cbcffe (patch) | |
tree | c26e7b7720b7c16d7b0e7bcd14394da9f898841b /plugins/bf2142 | |
parent | ca2fd07b90746a17dba13963f7bdd54812c5d016 (diff) |
plugins: use the short form of peekProc
The short form of peekProc automatically uses the correct size for the target.
Diffstat (limited to 'plugins/bf2142')
-rw-r--r-- | plugins/bf2142/bf2142.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/bf2142/bf2142.cpp b/plugins/bf2142/bf2142.cpp index ad5515e51..48b9db1eb 100644 --- a/plugins/bf2142/bf2142.cpp +++ b/plugins/bf2142/bf2142.cpp @@ -16,7 +16,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa char logincheck; bool ok; - ok = peekProc(0x00A1D908, &logincheck, 1); + ok = peekProc(0x00A1D908, logincheck); if (! ok) return false; @@ -33,10 +33,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (! ok) return false; - ok = peekProc(posptr, avatar_pos, 12) && - peekProc(faceptr, avatar_front, 12) && - peekProc(topptr, avatar_top, 12) && - peekProc(0x00B527B8, ccontext, 128); + ok = peekProc(posptr, avatar_pos) && + peekProc(faceptr, avatar_front) && + peekProc(topptr, avatar_top) && + peekProc(0x00B527B8, ccontext); if (! ok) return false; |