diff options
-rw-r--r-- | engines/fullpipe/statics.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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) { |