File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Core/Libraries/Source/WWVegas/WWLib
GeneralsMD/Code/GameEngine/Include/Common
Generals/Code/GameEngine/Include/Common Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ private: \
144144 return The##ARGCLASS##Pool; \
145145 } \
146146protected: \
147- virtual int glueEnforcer () const { return sizeof (* this ); } \
147+ virtual void glueEnforcer () const { } \
148148public: \
149149 inline void * operator new (size_t s) { return allocateFromW3DMemPool (getClassMemoryPool (), s); } \
150150 inline void operator delete (void *p) { freeFromW3DMemPool (getClassMemoryPool (), p); } \
@@ -162,7 +162,7 @@ class W3DMPO
162162 }
163163protected:
164164 // we never call this; it is present to cause compile errors in descendent classes
165- virtual int glueEnforcer () const = 0;
165+ virtual void glueEnforcer () const = 0;
166166public:
167167 virtual ~W3DMPO () { /* nothing */ }
168168};
Original file line number Diff line number Diff line change @@ -214,12 +214,10 @@ 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
220- xfer->xferUser ( this , sizeof ( *this ) );
221- #else
217+ #if RETAIL_COMPATIBLE_XFER_SAVE
222218 xfer->xferUser ( this , sizeof ( this ) );
219+ #else
220+ xfer->xferUser ( this , sizeof ( *this ) );
223221#endif
224222
225223 }
Original file line number Diff line number Diff line change @@ -214,12 +214,10 @@ 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
220- xfer->xferUser ( this , sizeof ( *this ) );
221- #else
217+ #if RETAIL_COMPATIBLE_XFER_SAVE
222218 xfer->xferUser ( this , sizeof ( this ) );
219+ #else
220+ xfer->xferUser ( this , sizeof ( *this ) );
223221#endif
224222
225223 }
You can’t perform that action at this time.
0 commit comments