diff options
author | Matthew Hoops | 2010-05-26 13:11:04 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-26 13:11:04 +0000 |
commit | 163847b24572ff5425f5ab4256ab1349c9840a74 (patch) | |
tree | 10cf15e7ca8c06542087135348de4d57bc2ab6e7 /engines/mohawk/video.cpp | |
parent | f2dda51943c0a34315babb8241c1f12fe3f5d658 (diff) | |
download | scummvm-rg350-163847b24572ff5425f5ab4256ab1349c9840a74.tar.gz scummvm-rg350-163847b24572ff5425f5ab4256ab1349c9840a74.tar.bz2 scummvm-rg350-163847b24572ff5425f5ab4256ab1349c9840a74.zip |
Fix the 'boiling water' videos in the boiler puzzle.
svn-id: r49237
Diffstat (limited to 'engines/mohawk/video.cpp')
-rw-r--r-- | engines/mohawk/video.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp index 3a86e0323b..beef312876 100644 --- a/engines/mohawk/video.cpp +++ b/engines/mohawk/video.cpp @@ -277,8 +277,10 @@ 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; - memset(&_videoStreams[i].video, 0, sizeof(VideoEntry)); + delete _videoStreams[j].video; + _videoStreams[j].video = 0; + _videoStreams[j].id = 0; + _videoStreams[j].filename.clear(); return; } } |