aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 22:58:22 +0200
committerFilippos Karapetis2017-03-22 22:58:22 +0200
commit808e465e7e684df6b3f4d5ef56633e2dcca2d94e (patch)
tree4eadbf98448da3faef96528eaef218c9566b0ff1 /engines/fullpipe/statics.cpp
parentf669aca3f27c6fc058f8ba94af3bffb3a0ddde5a (diff)
downloadscummvm-rg350-808e465e7e684df6b3f4d5ef56633e2dcca2d94e.tar.gz
scummvm-rg350-808e465e7e684df6b3f4d5ef56633e2dcca2d94e.tar.bz2
scummvm-rg350-808e465e7e684df6b3f4d5ef56633e2dcca2d94e.zip
FULLPIPE: _data is unused in the Statics and DynamicPhase classes
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 8806ce9d05..e77398287a 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1428,7 +1428,8 @@ Common::Point *StaticANIObject::calcStepLen(Common::Point *p) {
Statics::Statics() {
_staticsId = 0;
- _picture = 0;
+ _picture = nullptr;
+ _data = nullptr;
}
Statics::~Statics() {
@@ -1474,7 +1475,6 @@ void Statics::init() {
freePixelData();
// TODO: properly dispose old _bitmap
_bitmap = reversed;
- // _data = ... // useless?
}
}
@@ -2199,6 +2199,7 @@ DynamicPhase::DynamicPhase() {
_field_7E = 0;
_dynFlags = 0;
_someY = 0;
+ _data = nullptr;
}
DynamicPhase::~DynamicPhase() {
@@ -2217,7 +2218,6 @@ DynamicPhase::DynamicPhase(DynamicPhase *src, bool reverse) {
src->init();
_bitmap = src->_bitmap->reverseImage();
- _data = _bitmap->_pixels;
_dataSize = src->_dataSize;
if (g_fp->_currArchive) {