The detectMusicDriver() function returns MD_-something, not MDT_-something.

svn-id: r46478
This commit is contained in:
Torbjörn Andersson 2009-12-22 06:02:49 +00:00
parent 0d82924fbe
commit 899d576976

View File

@ -67,7 +67,7 @@ void SciMusic::init() {
_midiType = MidiDriver::detectMusicDriver(MDT_MIDI | MDT_ADLIB | MDT_PCSPK);
// Sanity check
if (_midiType != MDT_MIDI && _midiType != MDT_ADLIB && _midiType != MDT_PCSPK) {
if (_midiType != MD_ADLIB && _midiType != MD_PCJR && _midiType != MD_PCSPK) {
warning("Unhandled MIDI type, switching to Adlib");
_midiType = MD_ADLIB;
}