Skip to content

Commit

Permalink
Fix buffer reading methods not being bound to this
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Sep 14, 2024
1 parent ffe1cf9 commit 0b44965
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions packages/osu-droid-replay-analyzer/src/ReplayAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,17 +625,13 @@ export class ReplayAnalyzer {
time[j] >>= 2;

if (id[j] !== MovementType.up) {
x[j] = (
resultObject.replayVersion >= 5
? this.readFloat
: this.readShort
)(replayDataBuffer);

y[j] = (
resultObject.replayVersion >= 5
? this.readFloat
: this.readShort
)(replayDataBuffer);
if (resultObject.replayVersion >= 5) {
x[j] = this.readFloat(replayDataBuffer);
y[j] = this.readFloat(replayDataBuffer);
} else {
x[j] = this.readShort(replayDataBuffer);
y[j] = this.readShort(replayDataBuffer);
}
} else {
x[j] = -1;
y[j] = -1;
Expand Down

0 comments on commit 0b44965

Please sign in to comment.