summaryrefslogtreecommitdiff
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-12 20:10:08 +0300
committerSergeanur <s.anureev@yandex.ua>2021-06-24 21:32:44 +0300
commit8fc99387f5a8cedd3cf7f28d54a733df0a031955 (patch)
tree48da4d77cf1d37589585e46ffd2d1310b82ca2f3 /src/audio/AudioLogic.cpp
parent939d0c59a3994a564b2257b8d9e5ec107b1b7933 (diff)
Fix use of enum in ped comment banks switch
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r--src/audio/AudioLogic.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index a5de21d0..8472cda6 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -6079,12 +6079,12 @@ cPedComments::Process()
}
// Switch bank
- if (m_nActiveBank) {
- actualUsedBank = SFX_BANK_PED_COMMENTS;
- m_nActiveBank = SFX_BANK_0;
+ if (m_nActiveBank == 0) {
+ actualUsedBank = 0;
+ m_nActiveBank = 1;
} else {
- actualUsedBank = SFX_BANK_0;
- m_nActiveBank = SFX_BANK_PED_COMMENTS;
+ actualUsedBank = 1;
+ m_nActiveBank = 0;
}
comment = m_asPedComments[actualUsedBank];
for (uint32 i = 0; i < m_nCommentsInBank[actualUsedBank]; i++) {