@@ -255,7 +255,7 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
255255
256256 Player *player = ThePlayerList->getLocalPlayer ();
257257 UnicodeString name, cost, descrip;
258- UnicodeString requires = UnicodeString::TheEmptyString, requiresList;
258+ UnicodeString requiresFormat = UnicodeString::TheEmptyString, requiresList;
259259 Bool firstRequirement = true ;
260260 const ProductionPrerequisite *prereq;
261261 Bool fireScienceButton = false ;
@@ -405,17 +405,17 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
405405 if (firstRequirement)
406406 firstRequirement = false ;
407407 else
408- requires .concat (L" , " );
408+ requiresFormat .concat (L" , " );
409409 }
410- requires .concat (requiresList);
410+ requiresFormat .concat (requiresList);
411411 }
412- if ( !requires .isEmpty () )
412+ if ( !requiresFormat .isEmpty () )
413413 {
414414 UnicodeString requireFormat = TheGameText->fetch (" CONTROLBAR:Requirements" );
415- requires .format (requireFormat.str (), requires .str ());
415+ requiresFormat .format (requireFormat.str (), requiresFormat .str ());
416416 if (!descrip.isEmpty ())
417417 descrip.concat (L" \n " );
418- descrip.concat (requires );
418+ descrip.concat (requiresFormat );
419419
420420 }
421421 }
@@ -496,17 +496,17 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
496496 if (firstRequirement)
497497 firstRequirement = false ;
498498 else
499- requires .concat (L" , " );
499+ requiresFormat .concat (L" , " );
500500 }
501- requires .concat (requiresList);
501+ requiresFormat .concat (requiresList);
502502 }
503- if ( !requires .isEmpty () )
503+ if ( !requiresFormat .isEmpty () )
504504 {
505505 UnicodeString requireFormat = TheGameText->fetch (" CONTROLBAR:Requirements" );
506- requires .format (requireFormat.str (), requires .str ());
506+ requiresFormat .format (requireFormat.str (), requiresFormat .str ());
507507 if (!descrip.isEmpty ())
508508 descrip.concat (L" \n " );
509- descrip.concat (requires );
509+ descrip.concat (requiresFormat );
510510 }
511511 }
512512
0 commit comments