Browse Source

Fix an offset bug in BinaryLoader

Takahiro 8 years ago
parent
commit
754b94720b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/BinaryLoader.js

+ 1 - 1
examples/js/loaders/BinaryLoader.js

@@ -250,7 +250,7 @@ THREE.BinaryLoader.prototype = {
 
 				for ( var i = 0; i < length; i ++ ) {
 
-					text += String.fromCharCode( charArray[ offset + i ] );
+					text += String.fromCharCode( charArray[ i ] );
 
 				}