From 87c5fe3e0e7f68d1925eb7789868948c494d7727 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Wed, 3 Aug 2022 04:21:40 +0200 Subject: [PATCH] Reduce chance of index error --- src/db/Player.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/db/Player.ts b/src/db/Player.ts index 4491f22..564da4e 100644 --- a/src/db/Player.ts +++ b/src/db/Player.ts @@ -155,14 +155,13 @@ export default class Player { planeId: 10001 } const LINEUPS = 6; - let slot = 0; dataObj.lineup = { curIndex: 0, lineups: {} } for (let i = 0; i <= LINEUPS; i++) { const copy = baseLineup; - copy.index = slot++; + copy.index = 0; dataObj.lineup.lineups[i] = copy; }