summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-26 12:42:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-26 12:42:21 +0300
commit45f77fd60f71322b288a4497dea5b583b2692613 (patch)
tree5ea3059c1125b3032fcdf6e0d7229a31b39dfc4a /src/being
parentd2e744dab8c38ef56184251fe96293fa0f51fb9f (diff)
downloadmanaverse-45f77fd60f71322b288a4497dea5b583b2692613.tar.gz
manaverse-45f77fd60f71322b288a4497dea5b583b2692613.tar.bz2
manaverse-45f77fd60f71322b288a4497dea5b583b2692613.tar.xz
manaverse-45f77fd60f71322b288a4497dea5b583b2692613.zip
Change destructors to virtual in all basic classes.
Also add some missing final to classes.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/actorsprite.h2
-rw-r--r--src/being/compoundsprite.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 11f427669..84b86d5ec 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -74,7 +74,7 @@ public:
A_DELETE_COPY(ActorSprite)
- ~ActorSprite();
+ virtual ~ActorSprite();
int getId() const A_WARN_UNUSED
{ return mId; }
diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h
index 5024f0122..d8c0cf849 100644
--- a/src/being/compoundsprite.h
+++ b/src/being/compoundsprite.h
@@ -57,7 +57,7 @@ public:
A_DELETE_COPY(CompoundSprite)
- ~CompoundSprite();
+ virtual ~CompoundSprite();
virtual bool reset() override;