mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-26 06:50:06 +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
|
//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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user