mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix hero level limiter
This commit is contained in:
@ -60,7 +60,7 @@ static std::string visitedTxt(const bool visited)
|
||||
|
||||
const std::string & CQuest::missionName(int mission)
|
||||
{
|
||||
static const std::array<std::string, 14> names = {
|
||||
static const std::array<std::string, 11> names = {
|
||||
"empty",
|
||||
"heroLevel",
|
||||
"primarySkill",
|
||||
@ -351,7 +351,7 @@ void CQuest::serializeJson(JsonSerializeFormat & handler, const std::string & fi
|
||||
return;
|
||||
|
||||
if(missionType == "Level")
|
||||
handler.serializeInt("heroLevel", mission.heroLevel, -1);
|
||||
handler.serializeInt("heroLevel", mission.heroLevel);
|
||||
|
||||
if(missionType == "PrimaryStat")
|
||||
{
|
||||
|
Reference in New Issue
Block a user