diff options
-rw-r--r-- | source/q_msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/q_msg.c b/source/q_msg.c index 50e237e..96f8f76 100644 --- a/source/q_msg.c +++ b/source/q_msg.c @@ -1892,7 +1892,9 @@ void MSG_ParseDeltaEntity( const entity_state_t *from, // set everything to the state we are delta'ing from if( from ) { - memcpy( to, from, sizeof( *to ) ); + if( to != from ) { + memcpy( to, from, sizeof( *to ) ); + } VectorCopy( from->origin, to->old_origin ); } else { memset( to, 0, sizeof( *to ) ); |