Fixed minor Coverity issue (CID 1446646)
This commit is contained in:
parent
d6a2339ff0
commit
8fbf09d1c7
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ static void DoAutofire(UINT uButton, BOOL& pressed)
|
|||
BOOL nowPressed = pressed;
|
||||
if (sg_PropertySheet.GetAutofire(uButton) && pressed)
|
||||
{
|
||||
toggle[uButton] = (!lastPressed[uButton]) ? TRUE : toggle[uButton] = !toggle[uButton];
|
||||
toggle[uButton] = (!lastPressed[uButton]) ? TRUE : !toggle[uButton];
|
||||
pressed = pressed && toggle[uButton];
|
||||
}
|
||||
lastPressed[uButton] = nowPressed;
|
||||
|
|
Loading…
Add table
Reference in a new issue