Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <davidebeatrici@gmail.com>2016-10-31 16:24:25 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2016-10-31 16:24:25 +0300
commit921ee19e3abd24482921d85b38c0c4b3d0cbcffe (patch)
treec26e7b7720b7c16d7b0e7bcd14394da9f898841b /plugins/lotro
parentca2fd07b90746a17dba13963f7bdd54812c5d016 (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/lotro')
-rw-r--r--plugins/lotro/lotro.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/lotro/lotro.cpp b/plugins/lotro/lotro.cpp
index e1ce137b1..c8ac8a3cf 100644
--- a/plugins/lotro/lotro.cpp
+++ b/plugins/lotro/lotro.cpp
@@ -66,16 +66,16 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
nPtr = pointer to character name (unique on a server)
*/
- ok = peekProc(0x01272D34, o, 12) &&
- peekProc(0x01272D2C, l, 2) &&
- peekProc(0x01272D28, &r, 1) &&
- peekProc(0x01272D20, &i, 1) &&
- peekProc(pModule + 0x00A138A4, &hPtr, 4);
+ ok = peekProc(0x01272D34, o) &&
+ peekProc(0x01272D2C, l) &&
+ peekProc(0x01272D28, r) &&
+ peekProc(0x01272D20, i) &&
+ peekProc(pModule + 0x00A138A4, hPtr);
if (! ok)
return false;
- ok = peekProc((procptr32_t)(hPtr + 0x0000046F), &h, 4);
+ ok = peekProc((procptr32_t)(hPtr + 0x0000046F), h);
if (! ok)
return false;