engine: common: replace same struct type memcpys by assignments
This commit is contained in:
parent
18ef4922de
commit
712b354421
3 changed files with 4 additions and 4 deletions
|
@ -1201,7 +1201,7 @@ void Con_CompleteCommand( field_t *field )
|
|||
|
||||
if( !con.matchCount ) return; // no matches
|
||||
|
||||
memcpy( &temp, con.completionField, sizeof( field_t ) );
|
||||
temp = *con.completionField;
|
||||
|
||||
// autocomplete second arg
|
||||
if( (Cmd_Argc() >= 2) || ((Cmd_Argc() == 1) && nextcmd) )
|
||||
|
|
|
@ -92,7 +92,7 @@ static void Sys_StackTrace( PEXCEPTION_POINTERS pInfo )
|
|||
STACKFRAME64 stackframe;
|
||||
DWORD image;
|
||||
|
||||
memcpy( &context, pInfo->ContextRecord, sizeof( CONTEXT ));
|
||||
context = *pInfo->ContextRecord;
|
||||
|
||||
options = SymGetOptions();
|
||||
options |= SYMOPT_DEBUG;
|
||||
|
|
|
@ -1209,7 +1209,7 @@ static void NET_AddToLagged( netsrc_t sock, packetlag_t *list, packetlag_t *pack
|
|||
packet->data = pStart;
|
||||
packet->size = length;
|
||||
packet->receivedtime = timestamp;
|
||||
memcpy( &packet->from, from, sizeof( netadr_t ));
|
||||
packet->from = *from;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1321,7 +1321,7 @@ static qboolean NET_LagPacket( qboolean newdata, netsrc_t sock, netadr_t *from,
|
|||
|
||||
// delivery packet from fake lag queue
|
||||
memcpy( data, pPacket->data, pPacket->size );
|
||||
memcpy( &net_from, &pPacket->from, sizeof( netadr_t ));
|
||||
net_from = pPacket->from;
|
||||
*length = pPacket->size;
|
||||
|
||||
if( pPacket->data )
|
||||
|
|
Loading…
Add table
Reference in a new issue