MYST3: Let HashMap do the error

This commit is contained in:
Henrik "Henke37" Andersson 2020-10-19 19:02:39 +02:00 committed by Eugene Sandulenko
parent 8f5ef19662
commit a4e579936e

View file

@ -737,11 +737,7 @@ uint32 Database::getAgeLabelId(uint32 ageID) {
}
Common::String Database::getSoundName(uint32 id) {
const Common::String result = _soundNames.getVal(id, "");
if (result.empty())
error("Unable to find a sound with id %d", id);
return result;
return _soundNames.getVal(id);
}
void Database::loadAmbientCues(Common::ReadStream *s) {