[Scummvm-cvs-logs] SF.net SVN: scummvm:[46345] scummvm/trunk/engines/teenagent/music.cpp

megath at users.sourceforge.net megath at users.sourceforge.net
Sat Dec 12 19:07:20 CET 2009


Revision: 46345
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46345&view=rev
Author:   megath
Date:     2009-12-12 18:07:20 +0000 (Sat, 12 Dec 2009)

Log Message:
-----------
do not play music while _rows is empty

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/music.cpp

Modified: scummvm/trunk/engines/teenagent/music.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/music.cpp	2009-12-12 14:18:29 UTC (rev 46344)
+++ scummvm/trunk/engines/teenagent/music.cpp	2009-12-12 18:07:20 UTC (rev 46345)
@@ -131,6 +131,9 @@
 }
 
 void MusicPlayer::interrupt() {
+	if (_rows.empty())
+		return;
+	
 	_currRow %= _rows.size();
 
 	Row *row = &_rows[_currRow];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list