Some SoundMacro command implementations

This commit is contained in:
Jack Andersen
2016-05-02 19:16:37 -10:00
parent fa8d9038df
commit 338df76711
9 changed files with 580 additions and 35 deletions

View File

@@ -22,9 +22,9 @@ bool AudioGroup::songInGroup(int songId) const
const AudioGroupSampleDirectory::Entry* AudioGroup::getSfxEntry(int sfxId) const
{
for (const AudioGroupSampleDirectory::Entry& ent : m_sdir.m_entries)
if (ent.m_sfxId == sfxId)
return &ent;
for (const auto& ent : m_sdir.m_entries)
if (ent.first.m_sfxId == sfxId)
return &ent.first;
return nullptr;
}