Fix GW-Verteidigung gibt kein Geld

This commit is contained in:
VegaZ
2021-04-02 18:38:25 +02:00
parent e42170575a
commit abd8576a9b

View File

@@ -289,8 +289,8 @@ namespace ReallifeGamemode.Server.Gangwar
Turfs turf = dbContext.Turfs.Where(t => t.Id == getId()).FirstOrDefault(); Turfs turf = dbContext.Turfs.Where(t => t.Id == getId()).FirstOrDefault();
turf.Owner = this.Owner; turf.Owner = this.Owner;
turf.FactionId = dbContext.Factions.Where(f => f.Name == this.Owner).FirstOrDefault().Id; turf.FactionId = dbContext.Factions.Where(f => f.Name == this.Owner).FirstOrDefault().Id;
dbContext.SaveChanges();
} }
dbContext.SaveChanges();
} }
this.Attacker = null; this.Attacker = null;
foreach (var c in playerInGangwar) foreach (var c in playerInGangwar)