- Fixed: DSBarInfo did not declare its object pointers for the garbage collector.

SVN r3559 (trunk)
This commit is contained in:
Randy Heit 2012-04-14 02:55:47 +00:00
parent b2336f5c21
commit 66a1b8be9d
1 changed files with 6 additions and 1 deletions

View File

@ -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)
{