[Scummvm-cvs-logs] SF.net SVN: scummvm:[50650] scummvm/trunk/gui/options.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jul 4 20:07:34 CEST 2010


Revision: 50650
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50650&view=rev
Author:   lordhoto
Date:     2010-07-04 18:07:34 +0000 (Sun, 04 Jul 2010)

Log Message:
-----------
Whoops, always increase midiId, not only when it's added to the GM Device popup.

Modified Paths:
--------------
    scummvm/trunk/gui/options.cpp

Modified: scummvm/trunk/gui/options.cpp
===================================================================
--- scummvm/trunk/gui/options.cpp	2010-07-04 18:03:18 UTC (rev 50649)
+++ scummvm/trunk/gui/options.cpp	2010-07-04 18:07:34 UTC (rev 50650)
@@ -681,7 +681,8 @@
 			if (d->getMusicType() >= MT_GM || d->getMusicDriverId() == "auto") {
 				_mt32DevicePopUp->appendEntry(d->getCompleteName(), midiId);
 				if (d->getMusicType() != MT_MT32)
-					_gmDevicePopUp->appendEntry(d->getCompleteName(), midiId++);
+					_gmDevicePopUp->appendEntry(d->getCompleteName(), midiId);
+				++midiId;
 			}
 		}
 	}


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