Skip to content

Commit bb0548c

Browse files
committed
fix: Fix incorrect check in AddCollisionSoundToList
1 parent 5042766 commit bb0548c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/game_sa/Audio/entities/AECollisionAudioEntity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void CAECollisionAudioEntity::AddCollisionSoundToList(
6868
) {
6969
// Find an entry with no sound.
7070
const auto e = rng::find_if_not(m_CollisionSoundList, &tCollisionSound::Sound);
71-
if (e != m_CollisionSoundList.end()) {
71+
if (e == m_CollisionSoundList.end()) {
7272
NOTSA_LOG_WARN("Collision sound list is full");
7373
return;
7474
}

0 commit comments

Comments
 (0)