mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 06:10:42 +00:00
- added validation of game skill when changing a level
This commit is contained in:
parent
a9c0765fe1
commit
c37dcc6eb4
1 changed files with 1 additions and 2 deletions
|
@ -634,8 +634,7 @@ void FLevelLocals::ChangeLevel(const char *levelname, int position, int inflags,
|
||||||
nextlevel = levelname;
|
nextlevel = levelname;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nextSkill != -1)
|
NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1;
|
||||||
NextSkill = nextSkill;
|
|
||||||
|
|
||||||
if (inflags & CHANGELEVEL_NOINTERMISSION)
|
if (inflags & CHANGELEVEL_NOINTERMISSION)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue