Fix use of enum in ped comment banks switch

This commit is contained in:
Sergeanur 2021-06-12 20:10:08 +03:00
parent 939d0c59a3
commit 8fc99387f5
1 changed files with 5 additions and 5 deletions

View File

@ -6079,12 +6079,12 @@ cPedComments::Process()
} }
// Switch bank // Switch bank
if (m_nActiveBank) { if (m_nActiveBank == 0) {
actualUsedBank = SFX_BANK_PED_COMMENTS; actualUsedBank = 0;
m_nActiveBank = SFX_BANK_0; m_nActiveBank = 1;
} else { } else {
actualUsedBank = SFX_BANK_0; actualUsedBank = 1;
m_nActiveBank = SFX_BANK_PED_COMMENTS; m_nActiveBank = 0;
} }
comment = m_asPedComments[actualUsedBank]; comment = m_asPedComments[actualUsedBank];
for (uint32 i = 0; i < m_nCommentsInBank[actualUsedBank]; i++) { for (uint32 i = 0; i < m_nCommentsInBank[actualUsedBank]; i++) {