aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_card.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2017-09-20 07:10:31 +0200
committerBastien Bouclet2017-09-20 07:16:20 +0200
commit661487c2b5c8376719d994fc9300cf2393dfce9f (patch)
tree9ea971db1fb53b38af394361d477d32527c04e4e /engines/mohawk/riven_card.cpp
parent56b744f5f15e15c01fbd89db88a595d95f1c71cb (diff)
downloadscummvm-rg350-661487c2b5c8376719d994fc9300cf2393dfce9f.tar.gz
scummvm-rg350-661487c2b5c8376719d994fc9300cf2393dfce9f.tar.bz2
scummvm-rg350-661487c2b5c8376719d994fc9300cf2393dfce9f.zip
MOHAWK: Riven: Move the water effect to its own class
Fixes the per frame scripts being leaked. Fixes #10215.
Diffstat (limited to 'engines/mohawk/riven_card.cpp')
-rw-r--r--engines/mohawk/riven_card.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/riven_card.cpp b/engines/mohawk/riven_card.cpp
index feea22a663..7a5cd617a6 100644
--- a/engines/mohawk/riven_card.cpp
+++ b/engines/mohawk/riven_card.cpp
@@ -54,7 +54,7 @@ RivenCard::~RivenCard() {
delete _hotspots[i];
}
- _vm->_gfx->clearWaterEffects();
+ _vm->_gfx->clearWaterEffect();
_vm->_gfx->clearFliesEffect();
_vm->_video->closeVideos();
}