mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
Fix inventory system crash
Forgot to assign position value
This commit is contained in:
@@ -23,6 +23,7 @@ namespace nksrv.LobbyServer.Msgs.Inventory
|
||||
{
|
||||
// update character id
|
||||
item.Csn = req.Csn;
|
||||
item.Position = NetUtils.GetItemPos(user, item.Isn);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace nksrv.LobbyServer.Msgs.Inventory
|
||||
if (item2 == item.Isn)
|
||||
{
|
||||
item.Csn = req.Csn;
|
||||
|
||||
item.Position = NetUtils.GetItemPos(user, item.Isn);
|
||||
response.Items.Add(NetUtils.ToNet(item));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user