From 776e3b10daedef6d9c7fa23fb5fcf255702d8ed3 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 14 Sep 2020 10:47:29 +0300 Subject: [PATCH] - fixed setting of skill level via action special https://forum.zdoom.org/viewtopic.php?t=69858 --- src/g_level.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index b80fbc280..952c49938 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -654,7 +654,8 @@ void FLevelLocals::ChangeLevel(const char *levelname, int position, int inflags, nextlevel = levelname; } - NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1; + if (nextSkill != -1) + NextSkill = (unsigned)nextSkill < AllSkills.Size() ? nextSkill : -1; if (inflags & CHANGELEVEL_NOINTERMISSION) {