MYST3: Let HashMap do the error
This commit is contained in:
parent
8f5ef19662
commit
a4e579936e
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue