mirror of https://github.com/AxioDL/amuse.git
Fix amuserender crash
This commit is contained in:
parent
e2581cea8b
commit
d06a5ebcfa
|
@ -304,10 +304,18 @@ int main(int argc, const boo::SystemChar** argv)
|
||||||
/* Get group selection via user */
|
/* Get group selection via user */
|
||||||
if (m_groupId != -1)
|
if (m_groupId != -1)
|
||||||
{
|
{
|
||||||
if (allSongGroups.find(m_groupId) != allSongGroups.end())
|
auto songSearch = allSongGroups.find(m_groupId);
|
||||||
|
auto sfxSearch = allSFXGroups.find(m_groupId);
|
||||||
|
if (songSearch != allSongGroups.end())
|
||||||
|
{
|
||||||
m_sfxGroup = false;
|
m_sfxGroup = false;
|
||||||
else if (allSFXGroups.find(m_groupId) != allSFXGroups.end())
|
m_groupName = &songSearch->second.first->first;
|
||||||
|
}
|
||||||
|
else if (sfxSearch != allSFXGroups.end())
|
||||||
|
{
|
||||||
m_sfxGroup = true;
|
m_sfxGroup = true;
|
||||||
|
m_groupName = &sfxSearch->second.first->first;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.report(logvisor::Error, "unable to find Group %d", m_groupId);
|
Log.report(logvisor::Error, "unable to find Group %d", m_groupId);
|
||||||
|
|
Loading…
Reference in New Issue