mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Some SoundMacro command implementations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user