From 782e31d78c1bbcc75a52444362ef5110233bb898 Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Sun, 11 Sep 2016 01:25:23 +0300 Subject: FULLPIPE: Fix reversed statics initialization --- engines/fullpipe/statics.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 83a0de0670..0539edd047 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1480,8 +1480,13 @@ bool Statics::load(MfcArchive &file) { void Statics::init() { Picture::init(); - if (_staticsId & 0x4000) - _bitmap->reverseImage(); + if (_staticsId & 0x4000) { + Bitmap *reversed = _bitmap->reverseImage(); + freePixelData(); + // TODO: properly dispose old _bitmap + _bitmap = reversed; + // _data = ... // useless? + } } Common::Point *Statics::getSomeXY(Common::Point &p) { -- cgit v1.2.3