diff --git a/src/g_shared/sbarinfo.cpp b/src/g_shared/sbarinfo.cpp index 315d42592..607535f79 100644 --- a/src/g_shared/sbarinfo.cpp +++ b/src/g_shared/sbarinfo.cpp @@ -948,6 +948,7 @@ inline void adjustRelCenter(bool relX, bool relY, const double &x, const double class DSBarInfo : public DBaseStatusBar { DECLARE_CLASS(DSBarInfo, DBaseStatusBar) + HAS_OBJECT_POINTERS public: DSBarInfo (SBarInfo *script=NULL) : DBaseStatusBar(script->height, script->resW, script->resH), ammo1(NULL), ammo2(NULL), ammocount1(0), ammocount2(0), armor(NULL), @@ -1476,7 +1477,11 @@ private: SBarInfoMainBlock *lastPopup; }; -IMPLEMENT_CLASS(DSBarInfo); +IMPLEMENT_POINTY_CLASS(DSBarInfo) + DECLARE_POINTER(ammo1) + DECLARE_POINTER(ammo2) + DECLARE_POINTER(armor) +END_POINTERS DBaseStatusBar *CreateCustomStatusBar (int script) {