mirror of
https://github.com/halpz/re3.git
synced 2024-12-22 17:35:29 +00:00
Fix use of enum in ped comment banks switch
This commit is contained in:
parent
939d0c59a3
commit
8fc99387f5
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue