[Scummvm-cvs-logs] scummvm master -> 95d9052c8de83737e86b584510efe1961b86ff0a

DrMcCoy drmccoy at drmccoy.de
Sat Jun 23 18:25:41 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
95d9052c8d GOB: Fix a very stupid mistake in the Gob1 background track selection


Commit: 95d9052c8de83737e86b584510efe1961b86ff0a
    https://github.com/scummvm/scummvm/commit/95d9052c8de83737e86b584510efe1961b86ff0a
Author: Sven Hesse (drmccoy at users.sourceforge.net)
Date: 2012-06-23T09:24:29-07:00

Commit Message:
GOB: Fix a very stupid mistake in the Gob1 background track selection

Thanks to salty-horse for catching that. :)

Changed paths:
    engines/gob/sound/sound.cpp



diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp
index 184e14a..403bd63 100644
--- a/engines/gob/sound/sound.cpp
+++ b/engines/gob/sound/sound.cpp
@@ -352,7 +352,7 @@ void Sound::adlibPlayBgMusic() {
 
 	const char *track = 0;
 	if (_vm->getPlatform() == Common::kPlatformWindows)
-		track = tracksWin[ARRAYSIZE(tracksWin)];
+		track = tracksWin[_vm->_util->getRandom(ARRAYSIZE(tracksWin))];
 	else
 		track = tracksMac[_vm->_util->getRandom(ARRAYSIZE(tracksMac))];
 






More information about the Scummvm-git-logs mailing list