This commit is contained in:
Charles 2001-05-16 20:16:58 +00:00
parent f7ac8f3376
commit 22a55d878d
2 changed files with 10 additions and 0 deletions

View File

@ -174,6 +174,13 @@ void CNpcParasiticWormEnemy::postInit()
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcParasiticWormSegment::shutdown()
{
delete m_actorGfx;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcParasiticWormEnemy::shutdown() void CNpcParasiticWormEnemy::shutdown()
{ {
// delete worm segments // delete worm segments
@ -186,6 +193,8 @@ void CNpcParasiticWormEnemy::shutdown()
oldSegment = currentSegment; oldSegment = currentSegment;
currentSegment = currentSegment->m_nextSegment; currentSegment = currentSegment->m_nextSegment;
oldSegment->shutdown();
delete oldSegment; delete oldSegment;
} }

View File

@ -18,6 +18,7 @@ class CNpcParasiticWormSegment
{ {
public: public:
virtual void init(); virtual void init();
virtual void shutdown();
virtual void render(); virtual void render();
virtual void processEnemyCollision( CThing *thisThing ); virtual void processEnemyCollision( CThing *thisThing );
virtual void setScale( u16 scale ) {m_scale = scale;} virtual void setScale( u16 scale ) {m_scale = scale;}