- fixed setting of skill level via action special

https://forum.zdoom.org/viewtopic.php?t=69858
This commit is contained in:
alexey.lysiuk 2020-09-14 10:47:29 +03:00
parent e281f992af
commit 776e3b10da

View file

@ -654,7 +654,8 @@ void FLevelLocals::ChangeLevel(const char *levelname, int position, int inflags,
nextlevel = levelname; nextlevel = levelname;
} }
NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1; if (nextSkill != -1)
NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1;
if (inflags & CHANGELEVEL_NOINTERMISSION) if (inflags & CHANGELEVEL_NOINTERMISSION)
{ {