From 7e0d08f52aaf4840d41720fe2eaf48b5404d3f59 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 12 Nov 2006 02:27:20 +0000 Subject: Replaced cryptic error() with an assertion. svn-id: r24681 --- engines/scumm/imuse/imuse_player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/imuse/imuse_player.cpp b/engines/scumm/imuse/imuse_player.cpp index e5066ed216..bfff2e6cf1 100644 --- a/engines/scumm/imuse/imuse_player.cpp +++ b/engines/scumm/imuse/imuse_player.cpp @@ -211,8 +211,8 @@ int Player::start_seq_sound(int sound, bool reset_vars) { } void Player::uninit_parts() { - if (_parts && _parts->_player != this) - error("asd"); + assert(!_parts || _parts->_player == this); + while (_parts) _parts->uninit(); -- cgit v1.2.3