- fixed some warnings.

This commit is contained in:
Christoph Oelckers 2023-06-16 20:50:04 +02:00
commit 40679294df
4 changed files with 4 additions and 4 deletions

View file

@ -425,7 +425,7 @@ CCMD (changeskill)
if (argv.argc() == 2)
{
int skill = atoi(argv[1]);
if (skill < 0 || skill >= AllSkills.Size())
if ((unsigned)skill >= AllSkills.Size())
{
Printf ("Skill %d is out of range.\n", skill);
}