Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix V3066 warnings from PVS-Studio Static Analyzer #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix V3066 warnings from PVS-Studio Static Analyzer #79

wants to merge 1 commit into from

Conversation

spirifoxy
Copy link

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug found using PVS-Studio. Warnings:
V3066 Possible incorrect order of arguments passed to 'IsAlive' method: 'defender' and 'attacker'. Fight2.cs 117
V3066 Possible incorrect order of arguments passed to 'StartFight' method: 'defender' and 'attacker'. Fight2.cs 126
V3066 Possible incorrect order of arguments passed to 'HitTarget' method: 'defender' and 'attacker'. Fight2.cs 165
V3066 Possible incorrect order of arguments passed to 'updateRoom' method: 'oldRoomData' and 'newRoomData'. PlayerManager.cs 26
V3066 Possible incorrect order of arguments passed to 'updateRoom' method: 'oldRoomData' and 'newRoomData'. PlayerManager.cs 56
V3066 Possible incorrect order of arguments passed to 'updateRoom' method: 'oldRoomData' and 'newRoomData'. PlayerManager.cs 71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant