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() {
166
166
}
167
167
168
168
SoundContainer& DynamicSongSection::SelectSoundContainer () {
169
+ RTEAssert (!m_SoundContainers.empty (), " Tried to get a SoundContainer from a DynamicSongSection with none to choose from!" );
170
+
169
171
// Shuffle between our options if we have multiple
170
172
if (m_SoundContainers.size () != 1 ) {
171
173
if (m_ShuffleUnplayedIndices.empty ()) {
@@ -198,8 +200,7 @@ SoundContainer& DynamicSongSection::SelectSoundContainer() {
198
200
}
199
201
}
200
202
}
201
-
202
- RTEAssert (!m_SoundContainers.empty (), " Tried to get a SoundContainer from a DynamicSongSection with none to choose from!" );
203
+
203
204
return m_SoundContainers[0 ];
204
205
}
205
206
You can’t perform that action at this time.
0 commit comments