aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/set_effects.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp
index 8954b6f5db..f0a0ed5bd0 100644
--- a/engines/bladerunner/set_effects.cpp
+++ b/engines/bladerunner/set_effects.cpp
@@ -77,18 +77,16 @@ void SetEffects::read(Common::ReadStream *stream, int framesCount) {
}
void SetEffects::reset() {
- Fog *fog, *nextFog;
+ Fog *nextFog;
if (!_fogs)
return;
do {
- fog = _fogs;
- nextFog = fog->_next;
- delete fog;
- fog = nextFog;
+ nextFog = _fogs->_next;
+ delete this->_fogs;
+ this->_fogs = nextFog;
} while (nextFog);
-
}
void SetEffects::setupFrame(int frame) {