fix driven distance save error

This commit is contained in:
hydrant
2019-05-13 17:30:41 +02:00
parent ad22f27478
commit 33b98e3bbb

View File

@@ -697,7 +697,7 @@ namespace ReallifeGamemode.Server.Managers
// save to db
using (var dbContext = new DatabaseContext())
{
foreach (var key in lastPositions.Keys)
foreach (var key in lastPositions.Keys.ToList())
{
Vehicle v = key.Entity<Vehicle>();
if (!v.HasSharedData("drivenDistance")) continue;