diff options
author | Torbjörn Andersson | 2003-10-09 06:52:28 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-10-09 06:52:28 +0000 |
commit | d3e35bc7316814df3d0111232072ba06079a50d2 (patch) | |
tree | f8e4d1e383a721767fc9007f8f28cd337c2d3637 | |
parent | 94be874b704ae7d761353a92aff37afdfee05166 (diff) | |
download | scummvm-rg350-d3e35bc7316814df3d0111232072ba06079a50d2.tar.gz scummvm-rg350-d3e35bc7316814df3d0111232072ba06079a50d2.tar.bz2 scummvm-rg350-d3e35bc7316814df3d0111232072ba06079a50d2.zip |
Temporary (?) fix to stop ScummVM crashing for me. (I don't define any
music driver in my [scummvm] section, which may be what's causing me
problems.)
svn-id: r10692
-rw-r--r-- | base/gameDetector.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 30e204e108..6e7732299d 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -539,6 +539,9 @@ Platform GameDetector::parsePlatform(const String &str) { } int GameDetector::parseMusicDriver(const String &str) { + if (str == String::emptyString) + return -1; + const char *s = str.c_str(); const MidiDriverDescription *md = getAvailableMidiDrivers(); |