Skip to content
Permalink
Browse files

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.
  • Loading branch information...
davidebeatrici authored and hacst committed May 11, 2016
1 parent 37c4749 commit e4c91e2a33244b826f49bc1cdebaaf772e200cf2
Showing with 3 additions and 3 deletions.
  1. +3 −3 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;

0 comments on commit e4c91e2

Please sign in to comment.
You can’t perform that action at this time.