fix currlevel in map command

This commit is contained in:
qndel 2021-09-01 09:35:35 +02:00 committed by Anders Jenbo
commit 96d784912f

View file

@ -193,6 +193,8 @@ std::string DebugCmdLoadMap(const string_view parameter)
setlevel = false;
setlvltype = quest._qlvltype;
currlevel = quest._qlevel;
myPlayer.plrlevel = quest._qlevel;
StartNewLvl(MyPlayerId, WM_DIABSETLVL, level);
return fmt::format("Welcome to {}.", QuestLevelNames[level]);
}