mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
CQuest: add missing completedOption initialization for CGQuestGuard
This commit is contained in:
parent
4e8486da7b
commit
b7fbbfdebe
@ -416,7 +416,7 @@ void CGSeerHut::init()
|
||||
{
|
||||
seerName = *RandomGeneratorUtil::nextItem(VLC->generaltexth->seerNames, cb->gameState()->getRandomGenerator());
|
||||
quest->textOption = cb->gameState()->getRandomGenerator().nextInt(2);
|
||||
quest->completedOption = cb->gameState()->getRandomGenerator().nextInt(1, 5);
|
||||
quest->completedOption = cb->gameState()->getRandomGenerator().nextInt(1, 3);
|
||||
}
|
||||
|
||||
void CGSeerHut::initObj()
|
||||
@ -746,6 +746,7 @@ void CGQuestGuard::init()
|
||||
{
|
||||
blockVisit = true;
|
||||
quest->textOption = cb->gameState()->getRandomGenerator().nextInt(3, 5);
|
||||
quest->completedOption = cb->gameState()->getRandomGenerator().nextInt(4, 5);
|
||||
}
|
||||
|
||||
void CGQuestGuard::completeQuest(const CGHeroInstance *h) const
|
||||
|
Loading…
Reference in New Issue
Block a user