hedgewars/uGame.pas
changeset 10116 dd27562b6f21
parent 10108 c68cf030eded
child 10127 7f29a65aa1e4
--- a/hedgewars/uGame.pas	Fri Feb 07 00:47:51 2014 +0400
+++ b/hedgewars/uGame.pas	Thu Feb 06 22:03:53 2014 +0100
@@ -26,7 +26,7 @@
 ////////////////////
     implementation
 ////////////////////
-uses uUtils, uInputHandler, uTeams, uIO, uAI, uGears, uSound, uLocale, uCaptions,
+uses uInputHandler, uTeams, uIO, uAI, uGears, uSound, uLocale, uCaptions,
      uTypes, uVariables, uCommands, uConsts, uVisualGearsList
      {$IFDEF USE_TOUCH_INTERFACE}, uTouch{$ENDIF};
 
@@ -77,7 +77,7 @@
         else if not isAudioMuted then
             begin
             str(i, s);
-            AddCaption(FormatPChar(trmsg[sidVolume], Str2PChar(s)), cWhiteColor, capgrpVolume)
+            AddCaption(Format(trmsg[sidVolume], s), cWhiteColor, capgrpVolume)
             end
         end;
     end;