From 76f9578016d0434b06866c2250b70907beeb9c97 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Tue, 2 Aug 2022 18:51:16 +0200 Subject: [PATCH] Change default slot to 0 (index out of range) --- src/server/packets/PlayerLoginCsReq.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server/packets/PlayerLoginCsReq.ts b/src/server/packets/PlayerLoginCsReq.ts index 9b4e98e..50710ef 100644 --- a/src/server/packets/PlayerLoginCsReq.ts +++ b/src/server/packets/PlayerLoginCsReq.ts @@ -57,15 +57,12 @@ export default async function handle(session: Session, packet: Packet) { planeId: 10001 } const LINEUPS = 6; - let slot = 0; plr.db.lineup = { curIndex: 0, lineups: {} } for (let i = 0; i <= LINEUPS; i++) { - const copy = baseLineup; - copy.index = slot++; - plr.db.lineup.lineups[i] = copy; + plr.db.lineup.lineups[i] = baseLineup; } plr.save(); }