hedgewars/ArgParsers.pas
branchios-revival
changeset 11099 c51e4c942525
parent 10316 0f46fb0e0d5f
child 11151 5c40c65b619d
--- 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));