diff options
author | Max Horn | 2011-03-30 13:33:39 +0200 |
---|---|---|
committer | Max Horn | 2011-04-04 09:53:26 +0200 |
commit | a4eea36b84b60db158fa14e15a620a6f3e72cc37 (patch) | |
tree | 19366ae16c1d19e818308ad28beba57e240c1a46 /engines/sci/graphics | |
parent | f4905eafd1b64fb371c7aa87a4399313e7187b8b (diff) | |
download | scummvm-rg350-a4eea36b84b60db158fa14e15a620a6f3e72cc37.tar.gz scummvm-rg350-a4eea36b84b60db158fa14e15a620a6f3e72cc37.tar.bz2 scummvm-rg350-a4eea36b84b60db158fa14e15a620a6f3e72cc37.zip |
SCI: Initialize newPlane fully before adding it to _planes
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 7189defd14..dd55b3b060 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -83,10 +83,12 @@ void GfxFrameout::kernelAddPlane(reg_t object) { } newPlane.object = object; - newPlane.pictureId = 0xFFFF; newPlane.priority = readSelectorValue(_segMan, object, SELECTOR(priority)); newPlane.lastPriority = 0xFFFF; // hidden newPlane.planeOffsetX = 0; + newPlane.pictureId = 0xFFFF; + newPlane.planePictureMirrored = false; + newPlane.planeBack = 0; _planes.push_back(newPlane); kernelUpdatePlane(object); |