summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index b8e90239..9e3eff42 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1613,7 +1613,7 @@ static qboolean G_RoomForClassChange( gentity_t *ent, class_t class,
BG_ClassBoundingBox( oldClass, fromMins, fromMaxs, NULL, NULL, NULL );
BG_ClassBoundingBox( class, toMins, toMaxs, NULL, NULL, NULL );
- VectorCopy( ent->s.origin, newOrigin );
+ VectorCopy( ent->client->ps.origin, newOrigin );
// find max x/y diff
maxHorizGrowth = toMaxs[ 0 ] - fromMaxs[ 0 ];