Skip to content

Commit 68a637b

Browse files
committed
bugfix: fix sizeof(this) in BitFlags CRC calculation
1 parent c564fa9 commit 68a637b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Include/Common/BitFlagsIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214
{
215215

216216
// just call the xfer implementation on the data values
217-
xfer->xferUser( this, sizeof( this ) );
217+
xfer->xferUser( this, sizeof( *this ) );
218218

219219
}
220220
else

GeneralsMD/Code/GameEngine/Include/Common/BitFlagsIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214
{
215215

216216
// just call the xfer implementation on the data values
217-
xfer->xferUser( this, sizeof( this ) );
217+
xfer->xferUser( this, sizeof( *this ) );
218218

219219
}
220220
else

0 commit comments

Comments
 (0)