We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b8894 commit 8993e9dCopy full SHA for 8993e9d
Source/Entities/DynamicSong.cpp
@@ -162,12 +162,13 @@ SoundContainer& DynamicSongSection::SelectTransitionSoundContainer() {
162
}
163
164
165
+ RTEAssert(!m_TransitionSoundContainers.empty(), "Tried to get a transition SoundContainer from a DynamicSongSection with none to choose from!");
166
return m_TransitionSoundContainers[0];
167
168
169
SoundContainer& DynamicSongSection::SelectSoundContainer() {
170
// Shuffle between our options if we have multiple
- if (m_SoundContainers.size() != 1) {
171
+ if (m_SoundContainers.size() > 1) {
172
if (m_ShuffleUnplayedIndices.empty()) {
173
for (unsigned int i = 0; i < m_SoundContainers.size(); i++) {
174
if (i != m_LastSoundContainerIndex) {
0 commit comments