fixed size bug

This commit is contained in:
kamilprzyb 2020-09-22 13:41:28 +02:00
parent 5a58908462
commit 0931c88541

View File

@ -637,8 +637,8 @@ void Database::removeExpiredVehicles(Player* player) {
} }
//delete all but one vehicles, leave last one for ceremonial deletion //delete all but one vehicles, leave last one for ceremonial deletion
for (int i = 1; i < toRemove.size(); i++) { for (int i = 0; i < (int)toRemove.size()-1; i++) {
memset(toRemove[i-1], 0, sizeof(sItemBase)); memset(toRemove[i], 0, sizeof(sItemBase));
} }
} }