aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-15 17:11:46 -0500
committerPaul Gilbert2017-01-15 17:11:46 -0500
commit89de1549ca267c137c23f2fd88b9fc7256b23194 (patch)
tree2f39fb0997ca4eee2ac291c5d8a7594639e43054 /engines
parent95beb870b1a737046bef4737972b97289a6ff4c4 (diff)
downloadscummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.tar.gz
scummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.tar.bz2
scummvm-rg350-89de1549ca267c137c23f2fd88b9fc7256b23194.zip
TITANIC: Fix showing correct inventory glyphs after loading savegame
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/pet_control/pet_inventory_glyphs.cpp4
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;
}