mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-25 04:40:04 +00:00
fix: out-of-bounds index in itemDeleteHandler()
This commit is contained in:
parent
d9ebb4e3ef
commit
e61682dfb2
@ -416,6 +416,9 @@ static void itemDeleteHandler(CNSocket* sock, CNPacketData* data) {
|
||||
|
||||
Player* plr = PlayerManager::getPlayer(sock);
|
||||
|
||||
if (itemdel->iSlotNum < 0 || itemdel->iSlotNum >= AINVEN_COUNT)
|
||||
return; // sanity check
|
||||
|
||||
resp.eIL = itemdel->eIL;
|
||||
resp.iSlotNum = itemdel->iSlotNum;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user