fixed comments formating, added zeroing out player->toRemoveVehicle after removing vehicle

This commit is contained in:
kamilprzyb 2020-09-23 11:21:32 +02:00
parent 016c48645e
commit 7bcdc111da
5 changed files with 13 additions and 10 deletions

View File

@ -798,4 +798,7 @@ void ItemManager::checkItemExpire(CNSocket* sock, Player* player) {
memset(&player->Equip[8], 0, sizeof(sItemBase)); memset(&player->Equip[8], 0, sizeof(sItemBase));
else else
memset(&player->Inven[player->toRemoveVehicle.iSlotNum], 0, sizeof(sItemBase)); memset(&player->Inven[player->toRemoveVehicle.iSlotNum], 0, sizeof(sItemBase));
player->toRemoveVehicle.eIL = 0;
player->toRemoveVehicle.iSlotNum = 0;
} }