1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Merge pull request #4631 from Laserlicht/fix_error_output

fix error with description
This commit is contained in:
Ivan Savenko 2024-09-21 17:46:31 +03:00 committed by GitHub
commit 4a5818aa7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -719,7 +719,7 @@ std::shared_ptr<CFaction> CTownHandler::loadFromJson(const std::string & scope,
faction->identifier = identifier;
VLC->generaltexth->registerString(scope, faction->getNameTextID(), source["name"].String());
VLC->generaltexth->registerString(scope, faction->getDescriptionTranslated(), source["description"].String());
VLC->generaltexth->registerString(scope, faction->getDescriptionTextID(), source["description"].String());
faction->creatureBg120 = ImagePath::fromJson(source["creatureBackground"]["120px"]);
faction->creatureBg130 = ImagePath::fromJson(source["creatureBackground"]["130px"]);