Fix inventory system crash

Forgot to assign position value
This commit is contained in:
Mikhail
2024-07-12 16:22:01 -04:00
parent 9356d347bd
commit 20213153ab
7 changed files with 113 additions and 9 deletions

View File

@@ -23,6 +23,7 @@ namespace nksrv.LobbyServer.Msgs.Inventory
{
// update character id
item.Csn = req.Csn;
item.Position = NetUtils.GetItemPos(user, item.Isn);
}
}

View File

@@ -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));
}
}