Prevent assertion on uninitialized variable webgl
authorunc0rr
Sun, 05 Jan 2014 13:08:50 +0400
branchwebgl
changeset 9956 0c6286c67b8d
parent 9954 bf51bc7e2808
child 9958 5a222923c8f8
Prevent assertion on uninitialized variable
hedgewars/uLocale.pas
--- a/hedgewars/uLocale.pas	Sun Jan 05 10:54:03 2014 +0400
+++ b/hedgewars/uLocale.pas	Sun Jan 05 13:08:50 2014 +0400
@@ -63,10 +63,10 @@
             continue;
         TryDo(Length(s) > 6, 'Load locale: empty string', true);
         val(s[1]+s[2], a{$IFNDEF PAS2C}, c{$ENDIF});
-        TryDo(c = 0, 'Load locale: numbers should be two-digit: ' + s, true);
+        {$IFNDEF PAS2C}TryDo(c = 0, 'Load locale: numbers should be two-digit: ' + s, true);{$ENDIF}
         TryDo(s[3] = ':', 'Load locale: ":" expected', true);
         val(s[4]+s[5], b{$IFNDEF PAS2C}, c{$ENDIF});
-        TryDo(c = 0, 'Load locale: numbers should be two-digit' + s, true);
+        {$IFNDEF PAS2C}TryDo(c = 0, 'Load locale: numbers should be two-digit' + s, true);{$ENDIF}
         TryDo(s[6] = '=', 'Load locale: "=" expected', true);
         Delete(s, 1, 6);
         case a of