mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-12 15:50:42 -05:00
Directly reference equipment id instead of using .find when retrieving other player's profile (#963)
This fixes an edge-case where the `.find` could return a gear rack mannequin's equipment instead of the player's if their inventory isn't in the order expected.
This commit is contained in:
commit
633b11d415
@ -427,8 +427,7 @@ export class ProfileController {
|
||||
},
|
||||
skills: playerPmc.Skills,
|
||||
equipment: {
|
||||
// Default inventory tpl
|
||||
Id: playerPmc.Inventory.items.find((item) => item._tpl === ItemTpl.INVENTORY_DEFAULT)._id,
|
||||
Id: playerPmc.Inventory.equipment,
|
||||
Items: playerPmc.Inventory.items,
|
||||
},
|
||||
achievements: playerPmc.Achievements,
|
||||
|
Loading…
x
Reference in New Issue
Block a user