mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 09:01:24 +00:00
- added validation of game skill when changing a level
This commit is contained in:
parent
c6514e4438
commit
1e9f0700f0
1 changed files with 1 additions and 2 deletions
|
@ -596,8 +596,7 @@ void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill
|
|||
nextlevel = levelname;
|
||||
}
|
||||
|
||||
if (nextSkill != -1)
|
||||
NextSkill = nextSkill;
|
||||
NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1;
|
||||
|
||||
if (flags & CHANGELEVEL_NOINTERMISSION)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue