Skip to content

Commit

Permalink
chore: old hitErrors push
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Jul 17, 2024
1 parent 0daecf0 commit da10858
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/tosu/src/entities/GamePlayData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,17 @@ export class GamePlayData extends AbstractEntity {
const items = process.readInt(base + 0x4);
const size = process.readInt(base + 0xc);

const errors: Array<number> = [];

for (let i = this.HitErrors.length - 1; i < size; i++) {
const current = items + leaderStart + 0x4 * i;
const error = process.readInt(current);

this.HitErrors.push(error);
errors.push(error);
}

this.HitErrors = errors;

this.resetReportCount('GD(updateHitErrors)');
} catch (exc) {
this.reportError(
Expand Down

0 comments on commit da10858

Please sign in to comment.