Skip to content

Commit c564fa9

Browse files
committed
bugfix: fix sizeof(this) in W3DMPO_GLUE macro
1 parent e6c28a4 commit c564fa9

File tree

1 file changed

+1
-1
lines changed
  • Core/Libraries/Source/WWVegas/WWLib

1 file changed

+1
-1
lines changed

Core/Libraries/Source/WWVegas/WWLib/always.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private: \
144144
return The##ARGCLASS##Pool; \
145145
} \
146146
protected: \
147-
virtual int glueEnforcer() const { return sizeof(this); } \
147+
virtual int glueEnforcer() const { return sizeof(*this); } \
148148
public: \
149149
inline void* operator new(size_t s) { return allocateFromW3DMemPool(getClassMemoryPool(), s); } \
150150
inline void operator delete(void *p) { freeFromW3DMemPool(getClassMemoryPool(), p); } \

0 commit comments

Comments
 (0)