minor fixes in custom skill code

SVN r561 (trunk)
This commit is contained in:
Christoph Oelckers 2007-11-03 15:08:06 +00:00
parent 6d3e239678
commit c873ae1709
2 changed files with 2 additions and 1 deletions

View File

@ -2516,7 +2516,7 @@ FUNC(LS_Autosave)
FUNC(LS_ChangeSkill)
{
if (arg0 < 0 || arg0 > AllSkills.Size())
if ((unsigned)arg0 >= AllSkills.Size())
{
NextSkill = -1;
}

View File

@ -7,6 +7,7 @@ skill baby
Key i
skill easy
EasyBossBrain
SpawnFilter "Easy"
PicName "M_ROUGH"
Key h