mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 11:50:04 +00:00
fixed size bug
This commit is contained in:
parent
5a58908462
commit
0931c88541
@ -637,8 +637,8 @@ void Database::removeExpiredVehicles(Player* player) {
|
||||
}
|
||||
|
||||
//delete all but one vehicles, leave last one for ceremonial deletion
|
||||
for (int i = 1; i < toRemove.size(); i++) {
|
||||
memset(toRemove[i-1], 0, sizeof(sItemBase));
|
||||
for (int i = 0; i < (int)toRemove.size()-1; i++) {
|
||||
memset(toRemove[i], 0, sizeof(sItemBase));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user