aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorD G Turner2019-09-01 07:45:02 +0100
committerD G Turner2019-09-01 07:45:02 +0100
commita37f35695c21106d49ce7a3991e9cddd487e9eda (patch)
tree0d6e7ccfb62aef4463787579f140e0db76a1378a /engines/xeen
parentada09b816240d1a57ed1d50e47342096ed232665 (diff)
downloadscummvm-rg350-a37f35695c21106d49ce7a3991e9cddd487e9eda.tar.gz
scummvm-rg350-a37f35695c21106d49ce7a3991e9cddd487e9eda.tar.bz2
scummvm-rg350-a37f35695c21106d49ce7a3991e9cddd487e9eda.zip
XEEN: Add Virtual Destructor to SpritesDrawer Base Class
This is required to avoid GCC Compiler Warnings from -Wnon-virtual-dtor
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/sprites.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/xeen/sprites.h b/engines/xeen/sprites.h
index c19a7baff0..4cf9579f87 100644
--- a/engines/xeen/sprites.h
+++ b/engines/xeen/sprites.h
@@ -197,6 +197,11 @@ public:
SpriteDrawer(byte *data, size_t filesize) : _data(data), _filesize(filesize) {}
/**
+ * Destructor
+ */
+ virtual ~SpriteDrawer() {}
+
+ /**
* Draw a sprite frame based on a passed offset into the data stream
*/
void draw(XSurface &dest, uint16 offset, const Common::Point &pt,