Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Core/Libraries/Source/WWVegas/WWLib/always.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private: \
return The##ARGCLASS##Pool; \
} \
protected: \
virtual int glueEnforcer() const { return sizeof(this); } \
virtual void glueEnforcer() const { } \
public: \
inline void* operator new(size_t s) { return allocateFromW3DMemPool(getClassMemoryPool(), s); } \
inline void operator delete(void *p) { freeFromW3DMemPool(getClassMemoryPool(), p); } \
Expand All @@ -162,7 +162,7 @@ class W3DMPO
}
protected:
// we never call this; it is present to cause compile errors in descendent classes
virtual int glueEnforcer() const = 0;
virtual void glueEnforcer() const = 0;
public:
virtual ~W3DMPO() { /* nothing */ }
};
Expand Down
4 changes: 4 additions & 0 deletions Generals/Code/GameEngine/Include/Common/BitFlagsIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
{

// just call the xfer implementation on the data values
#if RETAIL_COMPATIBLE_CRC
xfer->xferUser( this, sizeof( this ) );
#else
xfer->xferUser( this, sizeof( *this ) );
#endif

}
else
Expand Down
4 changes: 4 additions & 0 deletions GeneralsMD/Code/GameEngine/Include/Common/BitFlagsIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
{

// just call the xfer implementation on the data values
#if RETAIL_COMPATIBLE_CRC
xfer->xferUser( this, sizeof( this ) );
#else
xfer->xferUser( this, sizeof( *this ) );
#endif

}
else
Expand Down
Loading