Closed jorys-paulin closed 1 year ago
The code in components/menus/planning.ts on line 381 calls the ` function with the wrong arguments, sendinggameVersionthenidwhere it should beidthengameVersion`:
components/menus/planning.ts
` function with the wrong arguments, sending
then
where it should be
const loadoutUnlockable = getUnlockableById( req.gameVersion, req.gameVersion === "h1" ? sublocation?.Properties?.NormalLoadoutUnlock[ contractData.Metadata.Difficulty ?? "normal" ] : sublocation?.Properties?.NormalLoadoutUnlock, )
This causes planning for Miami and Hokkaido, which use that code, to break. The server just errors out and the game is stuck until it times out.
This pull request fixes that inversion.
Fixes #298.
The code in
components/menus/planning.ts
on line 381 calls the` function with the wrong arguments, sending
gameVersionthen
idwhere it should be
idthen
gameVersion`:This causes planning for Miami and Hokkaido, which use that code, to break. The server just errors out and the game is stuck until it times out.
This pull request fixes that inversion.
Fixes #298.