- Fix for wrong start paramIndex in case of Hwlibrary ios-revival
authorantonc27 <antonc27@mail.ru>
Sun, 09 Aug 2015 15:37:29 +0200
branchios-revival
changeset 11099 c51e4c942525
parent 11098 0032a00d915b
child 11100 c348a8afff6e
- Fix for wrong start paramIndex in case of Hwlibrary
hedgewars/ArgParsers.pas
--- a/hedgewars/ArgParsers.pas	Sun Aug 09 00:04:41 2015 +0200
+++ b/hedgewars/ArgParsers.pas	Sun Aug 09 15:37:29 2015 +0200
@@ -335,7 +335,7 @@
 //var tmpInt: LongInt;
 begin
 
-    paramIndex:= 1;
+    paramIndex:= {$IFDEF HWLIBRARY}0{$ELSE}1{$ENDIF};
     paramTotal:= ParamCount; //-1 because pascal enumeration is inclusive
     (*
     WriteLn(stdout, 'total parameters: ' + inttostr(paramTotal));