1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge branch 'develop' into battleonly

This commit is contained in:
Laserlicht
2025-11-02 20:31:28 +01:00
committed by GitHub
11 changed files with 150 additions and 60 deletions

View File

@@ -1678,7 +1678,7 @@ void CObjectListWindow::trimTextIfTooWide(std::string & text, bool preserveCount
{
auto posBrace = text.find_last_of("(");
auto posClosing = text.find_last_of(")");
if (posBrace != std::string::npos && posClosing != std::string::npos && posBrace < posClosing)
if (posBrace != std::string::npos && posClosing != std::string::npos && posClosing > posBrace)
{
std::string objCount = text.substr(posBrace, posClosing - posBrace) + ')';
suffix += " ";