diff options
author | Paul Gilbert | 2015-03-14 10:11:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-14 10:11:19 -0400 |
commit | 0f02cdb4aa0a0e29bea414583a6db8a5ae389f49 (patch) | |
tree | 2cb0bbd477458f9b65804ace4819ba5a542da932 /engines/mads/sprites.h | |
parent | 1f8845e9f433365c3586240b4e395cf888ec770b (diff) | |
download | scummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.tar.gz scummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.tar.bz2 scummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.zip |
MADS: Fix crash in stream crossing death, simplify SpriteSets class
Diffstat (limited to 'engines/mads/sprites.h')
-rw-r--r-- | engines/mads/sprites.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h index 6ea3c9e52e..bb5fdbe964 100644 --- a/engines/mads/sprites.h +++ b/engines/mads/sprites.h @@ -202,12 +202,12 @@ class SpriteSets : public Common::Array<SpriteAsset *> { private: MADSEngine *_vm; public: - int _assetCount; - + SpriteAsset *_uiSprites; +public: /** * Constructor */ - SpriteSets(MADSEngine *vm) : _vm(vm), _assetCount(0) {} + SpriteSets(MADSEngine *vm) : _vm(vm), _uiSprites(nullptr) {} /** * Destructor @@ -233,6 +233,8 @@ public: * Remove an asset from the list */ void remove(int idx); + + SpriteAsset *&operator[](int idx); }; } // End of namespace MADS |