From fcd42124fc248eb3cd66b6e5c3b5d21657b2f5ae Mon Sep 17 00:00:00 2001 From: Jamo Date: Sat, 6 Sep 2025 17:45:30 +0200 Subject: [PATCH] Fix building state message --- client/windows/CCastleInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/windows/CCastleInterface.cpp b/client/windows/CCastleInterface.cpp index 0cec2fb72..ae8589133 100644 --- a/client/windows/CCastleInterface.cpp +++ b/client/windows/CCastleInterface.cpp @@ -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