summaryrefslogtreecommitdiff
path: root/internal_rewrite/visual_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/visual_player.cpp')
-rw-r--r--internal_rewrite/visual_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal_rewrite/visual_player.cpp b/internal_rewrite/visual_player.cpp
index eeb5cca..ae3d52c 100644
--- a/internal_rewrite/visual_player.cpp
+++ b/internal_rewrite/visual_player.cpp
@@ -121,7 +121,7 @@ namespace features
if( bone && bone->parent != -1 && bone->flags & 0x100 ) {
auto& matrix = bone_matrix[ i ];
vec3_t hitbox = vec3_t( matrix[ 0 ][ 3 ], matrix[ 1 ][ 3 ], matrix[ 2 ][ 3 ] );
- hitbox -= ent->m_vecOrigin( );
+ hitbox -= ent->ce( )->GetRenderOrigin( );
hitbox += stored_origin;