hedgewars/uLand.pas
changeset 7594 5f03595335e6
parent 7591 d9ff60e0a390
child 7613 ce6ead3327b2
child 7640 e9e6b4d740f6
--- a/hedgewars/uLand.pas	Fri Aug 24 14:51:12 2012 +0400
+++ b/hedgewars/uLand.pas	Fri Aug 24 18:51:29 2012 -0400
@@ -286,7 +286,7 @@
         5: SelectTemplate:= WackyTemplates[getrandom(Succ(High(WackyTemplates)))];
 // For lua only!
         6: begin
-           SelectTemplate:= min(max(LuaTemplateNumber,0),High(EdgeTemplates));
+           SelectTemplate:= min(LuaTemplateNumber,High(EdgeTemplates));
            GetRandom(2) // burn 1
            end;
     end;