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:
parent
76540bd960
commit
5e72ef76cf
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user