spu: Make use of logical AND within IsPitchModulationEnabled()

It seems awfully suspect to use a bitwise AND here.
This commit is contained in:
Lioncash 2020-06-23 06:00:08 -04:00
parent 840a80670f
commit 20d17b953b
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ private:
}
ALWAYS_INLINE bool IsPitchModulationEnabled(u32 i) const
{
return ((i > 0) & ConvertToBoolUnchecked((m_pitch_modulation_enable_register >> i) & u32(1)));
return ((i > 0) && ConvertToBoolUnchecked((m_pitch_modulation_enable_register >> i) & u32(1)));
}
ALWAYS_INLINE s16 GetVoiceNoiseLevel() const { return static_cast<s16>(static_cast<u16>(m_noise_level)); }