diff options
author | Paul Gilbert | 2014-03-16 15:50:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-16 15:50:17 -0400 |
commit | 74da0c2ef7a5a77ddfcda26b28ebdeab68a9f8f5 (patch) | |
tree | e50e6ebe33072b9ffa435efc9eca139a523265e4 /engines/mads/player.cpp | |
parent | f3415b762eede6481cbfcb48faecfec505150eab (diff) | |
download | scummvm-rg350-74da0c2ef7a5a77ddfcda26b28ebdeab68a9f8f5.tar.gz scummvm-rg350-74da0c2ef7a5a77ddfcda26b28ebdeab68a9f8f5.tar.bz2 scummvm-rg350-74da0c2ef7a5a77ddfcda26b28ebdeab68a9f8f5.zip |
MADS: Fix for loading player sprites during scene startup
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r-- | engines/mads/player.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp index fe1065cbed..c3ce270954 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -104,10 +104,12 @@ bool Player::loadSprites(const Common::String &prefix) { _highSprites = true; _spriteSetsPresent[fileIndex] = true; - int setIndex = _vm->_game->_scene._sprites.addSprites(setName, 4); - if (setIndex >= 0) { + + int setIndex = -1; + if (Common::File::exists(setName)) { + setIndex = _vm->_game->_scene._sprites.addSprites(setName, 4); ++_numSprites; - } else if (fileIndex >= 5) { + } else if (fileIndex < 5) { _highSprites = 0; return true; } else { |