Skip to content

Commit

Permalink
fix: out of bounds RangeError in model317 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs authored Jul 23, 2024
1 parent 1107849 commit 21d81ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/jagex2/graphics/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ export default class Model extends Hashable {
}

const axis: Packet = new Packet(meta.data);
axis.pos = meta.faceTextureAxisOffset * 6;
axis.pos = meta.faceTextureAxisOffset;

for (let f: number = 0; f < texturedFaceCount; f++) {
texturedVertexA[f] = axis.g2;
Expand Down

0 comments on commit 21d81ee

Please sign in to comment.