File tree Expand file tree Collapse file tree 3 files changed +10
-2
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 +10
-2
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,7 +214,11 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214 {
215215
216216 // just call the xfer implementation on the data values
217+ #if RETAIL_COMPATIBLE_CRC
217218 xfer->xferUser ( this , sizeof ( this ) );
219+ #else
220+ xfer->xferUser ( this , sizeof ( *this ) );
221+ #endif
218222
219223 }
220224 else
Original file line number Diff line number Diff line change @@ -214,7 +214,11 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
214214 {
215215
216216 // just call the xfer implementation on the data values
217+ #if RETAIL_COMPATIBLE_CRC
217218 xfer->xferUser ( this , sizeof ( this ) );
219+ #else
220+ xfer->xferUser ( this , sizeof ( *this ) );
221+ #endif
218222
219223 }
220224 else
You can’t perform that action at this time.
0 commit comments