Skip to content

Commit 3d50d22

Browse files
committed
Fix bug
1 parent 24aed0b commit 3d50d22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jssrc/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
255255
});
256256

257257
return tableOffsetLoader.start().then(function(data) {
258-
_this.fileTableOffset = new DataView(data.slice(data.byteLength-4,data.byteLength)).getUint32(0, true);
258+
_this.fileTableOffset = new DataView(data).getUint32(0, true);
259259
var fileTableLoader = new JPAK.Tools.DataLoader({
260260
url: _this.jpakfile,
261261
partial: true,

0 commit comments

Comments
 (0)