Nicolas Cannasse 12 years ago
parent
commit
058f53c4e0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      std/tools/hxinst/Main.hx

+ 4 - 1
std/tools/hxinst/Main.hx

@@ -195,12 +195,15 @@ class Main {
 		var content = commandOutput("haxe");
 		var content = commandOutput("haxe");
 		var r = ~/^Haxe Compiler ([0-9]+)\.([0-9]+)(\.([0-9]+))?/;
 		var r = ~/^Haxe Compiler ([0-9]+)\.([0-9]+)(\.([0-9]+))?/;
 		var haxeVersion = null;
 		var haxeVersion = null;
-		if( r.match(content) )
+		if( r.match(content) ) {
 			haxeVersion = {
 			haxeVersion = {
 				major : Std.parseInt(r.matched(1)),
 				major : Std.parseInt(r.matched(1)),
 				minor : Std.parseInt(r.matched(2)),
 				minor : Std.parseInt(r.matched(2)),
 				build : Std.parseInt(r.matched(4))
 				build : Std.parseInt(r.matched(4))
 			};
 			};
+			if( haxeVersion.build == null ) haxeVersion.build = 0;
+		}
+
 
 
 		// GET Neko Version
 		// GET Neko Version
 		display("Getting Local Neko Version");
 		display("Getting Local Neko Version");