mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed invalid text ID in description of "start with hero" campaign bonus
This commit is contained in:
parent
ec1aee68d5
commit
50536e28da
@ -273,17 +273,15 @@ void CBonusSelection::createBonusesIcons()
|
||||
}
|
||||
|
||||
case CampaignBonusType::HERO:
|
||||
|
||||
desc.appendLocalString(EMetaText::GENERAL_TXT, 718);
|
||||
desc.replaceTextID(TextIdentifier("core", "genrltxt", "capColors", bonDescs[i].info1).get());
|
||||
if(bonDescs[i].info2 == 0xFFFF)
|
||||
{
|
||||
desc.replaceLocalString(EMetaText::GENERAL_TXT, 101);
|
||||
desc.appendLocalString(EMetaText::GENERAL_TXT, 720); // Start with random hero
|
||||
picNumber = -1;
|
||||
picName = "CBONN1A3.BMP";
|
||||
}
|
||||
else
|
||||
{
|
||||
desc.appendLocalString(EMetaText::GENERAL_TXT, 715); // Start with %s
|
||||
desc.replaceTextID(CGI->heroh->objects[bonDescs[i].info2]->getNameTextID());
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user