Browse Source

fixed js file input (close #1025)

Nicolas Cannasse 3 years ago
parent
commit
93154dc8a5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      hxd/fs/FileInput.hx

+ 3 - 3
hxd/fs/FileInput.hx

@@ -6,9 +6,9 @@ class FileInput extends haxe.io.Input {
 
 	var entry : FileEntry;
 	var cache : haxe.io.Bytes;
-	var cachePos : Int;
-	var cacheLen : Int;
-	var nextReadPos : Int;
+	var cachePos : Int = 0;
+	var cacheLen : Int = 0;
+	var nextReadPos : Int = 0;
 
 	function new(entry) {
 		this.entry = entry;