Browse Source

Merge pull request #11352 from takahirox/FixBinaryLoader

Fix an offset bug in BinaryLoader
Mr.doob 8 years ago
parent
commit
9c6b7a9a58
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 ] );
 
 				}