Skip to content

Commit

Permalink
Merge pull request #732 from tobiatesan/fix_6594
Browse files Browse the repository at this point in the history
WINTERMUTE: Log warning if addSound is called with empty filename
  • Loading branch information
sev- committed Nov 12, 2016
2 parents cd7bddf + cbd5946 commit 915c6bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/wintermute/base/sound/base_sound_manager.cpp
Expand Up @@ -97,6 +97,11 @@ BaseSoundBuffer *BaseSoundMgr::addSound(const Common::String &filename, Audio::M
return nullptr;
}

if (filename.empty()) {
// At least one game, Bickadoodle, calls playSound with an empty filename, see #6594
BaseEngine::LOG(0, "addSound called with empty filename");
}

BaseSoundBuffer *sound;

Common::String useFilename = filename;
Expand Down

0 comments on commit 915c6bf

Please sign in to comment.