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/gw
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/gw')
-rw-r--r--plugins/gw/gw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gw/gw.cpp b/plugins/gw/gw.cpp
index e5d1c70ee..ea6cca395 100644
--- a/plugins/gw/gw.cpp
+++ b/plugins/gw/gw.cpp
@@ -140,8 +140,8 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
ok = peekProc(camptr, cam) &&
peekProc(posptr, pos) &&
peekProc(camfrontptr, camfront) &&
- peekProc(locationptr, &location, 1) &&
- peekProc(areaptr, &areaid, 4);
+ peekProc(locationptr, location) &&
+ peekProc(areaptr, areaid);
if (!ok) // First we check, if the game is even running or if we should unlink because it's not / it's broken
return false;