diff options
-rw-r--r-- | engines/tsage/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp index 42416e2bf0..fec5518fd4 100644 --- a/engines/tsage/sound.cpp +++ b/engines/tsage/sound.cpp @@ -839,7 +839,7 @@ void SoundManager::_sfRethinkVoiceTypes() { entryIndex = -1; for (uint idx = 0; idx < vtStruct->_entries.size(); ++idx) { if ((vtStruct->_entries[idx]._field1 != 0) && - (vtStruct->_entries[idx]._type0._priority2 > maxVoiceNum)) { + (vtStruct->_entries[idx]._type0._priority2 > maxPriority)) { maxPriority = vtStruct->_entries[idx]._type0._priority2; entryIndex = idx; } |