GNAP: Add destructor to scene 1

This commit is contained in:
Strangerke 2016-04-19 21:11:47 +02:00 committed by Eugene Sandulenko
parent 65f8a72b16
commit 880bc07ae1
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,10 @@ Scene01::Scene01(GnapEngine *vm) : Scene(vm) {
_s01_spaceshipSurface = nullptr;
}
Scene01::~Scene01() {
delete _s01_spaceshipSurface;
}
int Scene01::init() {
_vm->_gameSys->setAnimation(0, 0, 0);
_vm->_gameSys->setAnimation(0, 0, 3);

View File

@ -33,6 +33,7 @@ class GnapEngine;
class Scene01: public Scene {
public:
Scene01(GnapEngine *vm);
~Scene01();
virtual int init();
virtual void updateHotspots();