File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
GeneralsMD/Code/GameEngine/Include/Common
Generals/Code/GameEngine/Include/Common Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,13 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214 {
215215
216216 // just call the xfer implementation on the data values
217+ // TheSuperHackers @bugfix bobtista 05/12/2025 Fix sizeof(this) bug
218+ // Original code used sizeof(this) which is pointer size
219+ #ifndef RETAIL_COMPATIBLE_CRC
217220 xfer->xferUser ( this , sizeof ( *this ) );
221+ #else
222+ xfer->xferUser ( this , sizeof ( this ) );
223+ #endif
218224
219225 }
220226 else
Original file line number Diff line number Diff line change @@ -214,7 +214,13 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214 {
215215
216216 // just call the xfer implementation on the data values
217+ // TheSuperHackers @bugfix bobtista 05/12/2025 Fix sizeof(this) bug
218+ // Original code used sizeof(this) which is pointer size
219+ #ifndef RETAIL_COMPATIBLE_CRC
217220 xfer->xferUser ( this , sizeof ( *this ) );
221+ #else
222+ xfer->xferUser ( this , sizeof ( this ) );
223+ #endif
218224
219225 }
220226 else
You can’t perform that action at this time.
0 commit comments