CRumbleVoice: Correct bool->s16 conversion

Given the return type of the function is an s16, we can just use 0
directly here.
This commit is contained in:
Lioncash 2020-03-18 00:32:48 -04:00
parent 2701f060ee
commit 71399d0944
1 changed files with 5 additions and 3 deletions

View File

@ -22,10 +22,12 @@ bool CRumbleVoice::OwnsSustained(s16 handle) const {
}
s16 CRumbleVoice::GetFreeChannel() const {
for (s16 i = 0; i < 4; ++i)
if (!((1 << i) & x2c_usedChannels))
for (s16 i = 0; i < 4; ++i) {
if (!((1 << i) & x2c_usedChannels)) {
return i;
return false;
}
}
return 0;
}
float CRumbleVoice::GetIntensity() const {