File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ SoundContainer& DynamicSongSection::SelectTransitionSoundContainer() {
166166}
167167
168168SoundContainer& DynamicSongSection::SelectSoundContainer () {
169+ RTEAssert (!m_SoundContainers.empty (), " Tried to get a SoundContainer from a DynamicSongSection with none to choose from!" );
170+
169171 // Shuffle between our options if we have multiple
170172 if (m_SoundContainers.size () != 1 ) {
171173 if (m_ShuffleUnplayedIndices.empty ()) {
@@ -198,8 +200,7 @@ SoundContainer& DynamicSongSection::SelectSoundContainer() {
198200 }
199201 }
200202 }
201-
202- RTEAssert (!m_SoundContainers.empty (), " Tried to get a SoundContainer from a DynamicSongSection with none to choose from!" );
203+
203204 return m_SoundContainers[0 ];
204205}
205206
You can’t perform that action at this time.
0 commit comments