aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-12-27 14:22:11 +0200
committerFilippos Karapetis2015-12-27 14:36:01 +0200
commit684830082b51ae1112c775e5c23b8a3e18727609 (patch)
tree29bb86b2aca50c8e034e154207d64fa9719d4926
parente2d019f9d1048a35c7d6b862918e057218a5cab6 (diff)
downloadscummvm-rg350-684830082b51ae1112c775e5c23b8a3e18727609.tar.gz
scummvm-rg350-684830082b51ae1112c775e5c23b8a3e18727609.tar.bz2
scummvm-rg350-684830082b51ae1112c775e5c23b8a3e18727609.zip
LAB: Simplify resetMusic()
-rw-r--r--engines/lab/music.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/lab/music.cpp b/engines/lab/music.cpp
index 114179b310..bcc534cafd 100644
--- a/engines/lab/music.cpp
+++ b/engines/lab/music.cpp
@@ -259,13 +259,8 @@ void Music::resetMusic() {
setMusic(false);
_vm->updateMusicAndEvents();
- if (!_oldMusicOn) {
- _tFile = 0;
- return;
- }
-
- _musicOn = _oldMusicOn;
- startMusic(false);
+ if (_oldMusicOn)
+ startMusic(false);
_tFile = 0;
}