diff options
author | Paul Gilbert | 2017-01-15 17:11:46 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-15 17:11:46 -0500 |
commit | 89de1549ca267c137c23f2fd88b9fc7256b23194 (patch) | |
tree | 2f39fb0997ca4eee2ac291c5d8a7594639e43054 | |
parent | 95beb870b1a737046bef4737972b97289a6ff4c4 (diff) | |
download | scummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.tar.gz scummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.tar.bz2 scummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.zip |
TITANIC: Fix showing correct inventory glyphs after loading savegame
-rw-r--r-- | engines/titanic/pet_control/pet_inventory_glyphs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.cpp b/engines/titanic/pet_control/pet_inventory_glyphs.cpp index d19ea60408..a994df035f 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.cpp +++ b/engines/titanic/pet_control/pet_inventory_glyphs.cpp @@ -294,8 +294,10 @@ int CPetInventoryGlyph::getItemIndex(CGameObject *item, bool isLoading) { int frameNum = item->getFrameNumber(); int movieFrame = item->getMovieFrame(); - if (isLoading && frameNum != -1 && frameNum != movieFrame) + if (isLoading && frameNum != -1 && frameNum != movieFrame) { item->loadFrame(frameNum); + movieFrame = frameNum; + } return movieFrame; } |