hedgewars/uScript.pas
changeset 14288 9548edd9ebcf
parent 14224 de21f6eb2366
child 14289 a3531b520efb
--- a/hedgewars/uScript.pas	Fri Nov 23 15:54:23 2018 -0500
+++ b/hedgewars/uScript.pas	Fri Nov 23 16:03:10 2018 -0500
@@ -2285,6 +2285,7 @@
     i, n: LongInt;
     success: boolean;
 begin
+	success:= false;
     if CheckAndFetchParamCount(L, 1, 2, 'SetTeamLabel', 'teamname[, label]', n) then
         begin
         success:= false;
@@ -3124,6 +3125,7 @@
 var success : boolean;
     n : LongInt;
 begin
+	success:= false;
     if CheckAndFetchParamCount(L, 1, 2, 'HedgewarsScriptLoad', 'scriptPath [, mustExist]', n) then
         begin
         if n = 1 then