mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
Fixed minor Coverity issue (CID 1446646)
This commit is contained in:
parent
d6a2339ff0
commit
8fbf09d1c7
@ -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…
Reference in New Issue
Block a user