PVS-Studio opened source code of "Amnesia: The Dark Descent" and "A Machine For Pigs" games. The games are a cult horror game in the survival horror genre. The main reason for these errors is the "last line effect" errors. There were a lot of suspicious places that looked like inattentive copying. Some cases may be due to the internal logic of the game itself. The better half of errors found by the analyzer in these projects was copy-paste errors.
Company Mentioned
PVS-Studio
@pvs-studio
Search for bugs in C, C++, C#, Java on Windows, Linux, macOS.
https://pvs-studio.com/