devilutionX
devilutionX copied to clipboard
Avoid segfaults when using randomly generated array indexes in items.cpp
The first couple of commits set up helpers for future checks. Items.cpp was one of the easier wins, drlg1.cpp is probably the worst offender so I'm trying to avoid that one as long as possible 😂
Lets fix all these signed/unsigned comparisons 🙃