diff options
author | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
commit | e2ad9c05f0cff73defe5083e6728ab9b1af63ab9 (patch) | |
tree | e3882263e01ace81722863d84e86337e82b06114 /plugins/bf3 | |
parent | 486381c95a5d83f61c47b8e43538c03f341cc8a5 (diff) |
Fix 2643: Revert "Merge PR #2611: plugins: use the short form of peekProc"
This reverts commit e9c558ffdbc1501d63f3fd6d73578f6fd6611aa1, reversing
changes made to ca2fd07b90746a17dba13963f7bdd54812c5d016.
This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
Diffstat (limited to 'plugins/bf3')
-rw-r--r-- | plugins/bf3/bf3.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/bf3/bf3.cpp b/plugins/bf3/bf3.cpp index 3d3c0853e..015ad3213 100644 --- a/plugins/bf3/bf3.cpp +++ b/plugins/bf3/bf3.cpp @@ -146,13 +146,13 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa ptr_chain_valid = true; } - ok = peekProc(avatar_pos_ptr, avatar_pos) && - peekProc(avatar_front_ptr, avatar_front) && - peekProc(avatar_top_ptr, avatar_top) && - peekProc(squad_state_ptr,squad_state) && - peekProc(squad_lead_state_ptr, is_squadleader) && - peekProc(team_state_ptr,team_state) && - peekProc(ipport_ptr,ccontext); + ok = peekProc(avatar_pos_ptr, avatar_pos, 12) && + peekProc(avatar_front_ptr, avatar_front, 12) && + peekProc(avatar_top_ptr, avatar_top, 12) && + peekProc(squad_state_ptr,&squad_state,1) && + peekProc(squad_lead_state_ptr, &is_squadleader,1) && + peekProc(team_state_ptr,&team_state,1) && + peekProc(ipport_ptr,ccontext,128); if (! ok) return false; |