diff options
Diffstat (limited to 'source/gameengine/GameLogic/SCA_ExpressionController.h')
-rw-r--r-- | source/gameengine/GameLogic/SCA_ExpressionController.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/gameengine/GameLogic/SCA_ExpressionController.h b/source/gameengine/GameLogic/SCA_ExpressionController.h index 705f6dfc415..4c1dfcb95a2 100644 --- a/source/gameengine/GameLogic/SCA_ExpressionController.h +++ b/source/gameengine/GameLogic/SCA_ExpressionController.h @@ -53,6 +53,13 @@ public: * so that self references are removed before the controller itself is released */ virtual void Delete(); + + +#ifdef WITH_CXX_GUARDEDALLOC +public: + void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:SCA_ExpressionController"); } + void operator delete( void *mem ) { MEM_freeN(mem); } +#endif }; #endif //__KX_EXPRESSIONCONTROLLER |