hedgewars/ArgParsers.pas
branchqmlfrontend
changeset 11403 b894922d58cc
parent 11071 3851ce4f2061
parent 11151 5c40c65b619d
child 11439 dd1350a475d9
--- a/hedgewars/ArgParsers.pas	Tue Sep 08 19:20:58 2015 +0300
+++ b/hedgewars/ArgParsers.pas	Mon Nov 16 22:57:24 2015 +0300
@@ -321,7 +321,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));