summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-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 eade857..4c22e71 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2935,7 +2935,7 @@ qboolean G_RoomForClassChange( gentity_t *ent, pClass_t class, vec3_t newOrigin
BG_FindBBoxForClass( oldClass, fromMins, fromMaxs, NULL, NULL, NULL );
BG_FindBBoxForClass( class, toMins, toMaxs, NULL, NULL, NULL );
- VectorCopy( ent->s.origin, newOrigin );
+ VectorCopy( ent->r.currentOrigin, newOrigin );
// find max x/y diff
maxHorizGrowth = toMaxs[ 0 ] - fromMaxs[ 0 ];