mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 18:50:20 +00:00
Merge pull request #917 from LocutusOfBorg/patch-1
Update DataQueue.h to fix a build failure in Append method Thanks!
This commit is contained in:
commit
4d15543a47
1 changed files with 10 additions and 4 deletions
|
@ -107,10 +107,16 @@ bool idDataQueue< maxItems, maxBuffer >::Append( int sequence, const byte* b1, i
|
|||
item.length = b1Len + b2Len;
|
||||
item.sequence = sequence;
|
||||
item.dataOffset = dataLength;
|
||||
memcpy( data + dataLength, b1, b1Len );
|
||||
dataLength += b1Len;
|
||||
memcpy( data + dataLength, b2, b2Len );
|
||||
dataLength += b2Len;
|
||||
if( b1 != NULL)
|
||||
{
|
||||
memcpy( data + dataLength, b1, b1Len );
|
||||
dataLength += b1Len;
|
||||
}
|
||||
if( b2 != NULL )
|
||||
{
|
||||
memcpy( data + dataLength, b2, b2Len );
|
||||
dataLength += b2Len;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue