1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Fix building state message

This commit is contained in:
Jamo
2025-09-06 17:45:30 +02:00
parent 0357cfcba5
commit fcd42124fc

View File

@@ -1854,7 +1854,7 @@ std::string CBuildWindow::getTextForState(EBuildingState state)
case EBuildingState::ALREADY_PRESENT:
case EBuildingState::CANT_BUILD_TODAY:
case EBuildingState::NO_RESOURCES:
ret.replace(ret.find_first_of("%s"), 2, building->getNameTranslated());
boost::algorithm::replace_first(ret, "%s", building->getNameTranslated());
break;
case EBuildingState::ALLOWED:
return LIBRARY->generaltexth->allTexts[219]; //all prereq. are met