fix driven distance save error
This commit is contained in:
@@ -697,7 +697,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
// save to db
|
// save to db
|
||||||
using (var dbContext = new DatabaseContext())
|
using (var dbContext = new DatabaseContext())
|
||||||
{
|
{
|
||||||
foreach (var key in lastPositions.Keys)
|
foreach (var key in lastPositions.Keys.ToList())
|
||||||
{
|
{
|
||||||
Vehicle v = key.Entity<Vehicle>();
|
Vehicle v = key.Entity<Vehicle>();
|
||||||
if (!v.HasSharedData("drivenDistance")) continue;
|
if (!v.HasSharedData("drivenDistance")) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user