diff options
author | Davide Beatrici <davidebeatrici@users.noreply.github.com> | 2016-05-11 23:55:05 +0300 |
---|---|---|
committer | Stefan Hacker <mail@hacst.net> | 2016-05-11 23:55:05 +0300 |
commit | e4c91e2a33244b826f49bc1cdebaaf772e200cf2 (patch) | |
tree | 4c12d1019726aadf2e804e554fc00b47870628fd /plugins/bf4 | |
parent | 37c4749e76225ffe3e844642c0c39fa61c5cbbf1 (diff) |
Fixed Squad/Squad Leader pointers (#2267)
- The pointers were not working on some servers, or pointing to random memory addresses. The new ones seem to work fine.
- Updated the license header.
Diffstat (limited to 'plugins/bf4')
-rw-r--r-- | plugins/bf4/bf4.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/bf4/bf4.cpp b/plugins/bf4/bf4.cpp index 3ed571dcb..933d469f2 100644 --- a/plugins/bf4/bf4.cpp +++ b/plugins/bf4/bf4.cpp @@ -1,4 +1,4 @@ -// Copyright 2016 The Mumble Developers. All rights reserved. +// Copyright 2005-2016 The Mumble Developers. All rights reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file at the root of the // Mumble source tree or at <https://www.mumble.info/LICENSE>. @@ -32,9 +32,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (!serverid_offset) return false; // Squad pointers - BYTE *squad_base = peekProc<BYTE *>(pModule + 0x02210D68); + BYTE *squad_base = peekProc<BYTE *>(pModule + 0x02210718); if (!squad_base) return false; - BYTE *squad_offset_0 = peekProc<BYTE *>(squad_base + 0x570); + BYTE *squad_offset_0 = peekProc<BYTE *>(squad_base + 0xD8); if (!squad_offset_0) return false; BYTE *squad_offset_1 = peekProc<BYTE *>(squad_offset_0 + 0x100); if (!squad_offset_1) return false; |