Ver código fonte

Fix an offset bug in BinaryLoader

Takahiro 8 anos atrás
pai
commit
754b94720b
1 arquivos alterados com 1 adições e 1 exclusões
  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 ] );
 
 				}