diff options
author | Nipun Garg | 2019-07-18 02:19:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:23 +0200 |
commit | 161f9e67070f38906cd62b7db65d1d6cf2802823 (patch) | |
tree | c672e3075942efc60f94e4f1aec2dbd42cd2b90e /engines/hdb/gfx.h | |
parent | e9e654d7db8c6b865c6f168f6f35663af85fce85 (diff) | |
download | scummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.tar.gz scummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.tar.bz2 scummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.zip |
HDB: NULL each tile after calling destructor
Diffstat (limited to 'engines/hdb/gfx.h')
-rw-r--r-- | engines/hdb/gfx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/gfx.h b/engines/hdb/gfx.h index 1c993ec201..ce6ceb6502 100644 --- a/engines/hdb/gfx.h +++ b/engines/hdb/gfx.h @@ -253,7 +253,7 @@ public: Picture(); ~Picture(); - Graphics::ManagedSurface *load(Common::SeekableReadStream *stream); + Graphics::Surface load(Common::SeekableReadStream *stream); int draw(int x, int y); int drawMasked(int x, int y, int alpha = 0xff); @@ -261,12 +261,12 @@ public: char *getName() { return _name; } - Graphics::ManagedSurface *getSurface() { return _surface; } + Graphics::ManagedSurface *getSurface() { return &_surface; } private: char _name[64]; - Graphics::ManagedSurface *_surface; + Graphics::ManagedSurface _surface; }; class Tile { @@ -275,7 +275,7 @@ public: Tile(); ~Tile(); - Graphics::ManagedSurface *load(Common::SeekableReadStream *stream); + Graphics::Surface load(Common::SeekableReadStream *stream); int draw(int x, int y); int drawMasked(int x, int y, int alpha = 0xff); @@ -285,7 +285,7 @@ public: private: char _name[64]; - Graphics::ManagedSurface *_surface; + Graphics::ManagedSurface _surface; }; } // End of Namespace HDB |