1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00

Fix quest texts accessing

This commit is contained in:
Ivan Savenko 2023-01-10 16:24:59 +02:00
parent 76540bd960
commit 5e72ef76cf

View File

@ -588,7 +588,7 @@ void CGSeerHut::initObj(CRandomGenerator & rand)
quest->progress = CQuest::NOT_ACTIVE; quest->progress = CQuest::NOT_ACTIVE;
if(quest->missionType) if(quest->missionType)
{ {
std::string questName = quest->missionName(CQuest::Emission(quest->missionType-1)); std::string questName = quest->missionName(quest->missionType);
if(!quest->isCustomFirst) if(!quest->isCustomFirst)
quest->firstVisitText = VLC->generaltexth->translate("core.seerhut.quest." + questName + "." + quest->missionState(0), quest->textOption); quest->firstVisitText = VLC->generaltexth->translate("core.seerhut.quest." + questName + "." + quest->missionState(0), quest->textOption);