summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-09-09 23:32:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-09-09 23:32:51 +0200
commit7aca08a954d503bab2e2453c877e63d0b3fa2ca9 (patch)
tree74560a42890068c25e181b34b9876184b085eaa2 /src/audio/AudioLogic.cpp
parentFix crash on assert (diff)
downloadre3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar.gz
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar.bz2
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar.lz
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar.xz
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.tar.zst
re3-7aca08a954d503bab2e2453c877e63d0b3fa2ca9.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 43736342..ac81523c 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -3839,9 +3839,9 @@ cAudioManager::SetPlayersMood(uint8 mood, int32 time)
{
if (!m_bIsInitialised) return;
- if (mood < 4) {
- m_bPlayerMood = mood;
- field_4B34 = CTimer::GetTimeInMilliseconds() + time;
+ if (mood < MAX_PLAYER_MOODS) {
+ m_nPlayerMood = mood;
+ m_nPlayerMoodTimer = CTimer::GetTimeInMilliseconds() + time;
}
}