aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-01-14 16:07:46 +0000
committerAlyssa Milburn2011-01-14 16:07:46 +0000
commit311c643c1e01982bbdd7dd0716ddfc61a3f153ce (patch)
treef4287a9687a8022d16498e54ad593d55fb0fa875
parenta191190cf21ed623d660c70fe3464c74d87b351a (diff)
downloadscummvm-rg350-311c643c1e01982bbdd7dd0716ddfc61a3f153ce.tar.gz
scummvm-rg350-311c643c1e01982bbdd7dd0716ddfc61a3f153ce.tar.bz2
scummvm-rg350-311c643c1e01982bbdd7dd0716ddfc61a3f153ce.zip
MOHAWK: Don't delete the wrong video.
svn-id: r55241
-rw-r--r--engines/mohawk/video.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp
index 6abc817128..55f087e568 100644
--- a/engines/mohawk/video.cpp
+++ b/engines/mohawk/video.cpp
@@ -325,7 +325,7 @@ void VideoManager::stopMovie(uint16 id) {
if (_mlstRecords[i].code == id)
for (uint16 j = 0; j < _videoStreams.size(); j++)
if (_mlstRecords[i].movieID == _videoStreams[j].id) {
- delete _videoStreams[i].video;
+ delete _videoStreams[j].video;
_videoStreams[j].clear();
return;
}