Change all instances of ToLower() to ToLowerInvariant()

This commit is contained in:
Mustafa Alperen Seki
2020-04-17 15:00:36 +03:00
committed by atlimit8
parent 0a9eb1ff83
commit 5b34af0f12
4 changed files with 13 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ namespace OpenRA.Mods.Common.Traits
var initialFacing = self.World.Map.FacingBetween(location, self.Location, 0);
// If aircraft, spawn at cruise altitude
var aircraftInfo = self.World.Map.Rules.Actors[deliveringActorName.ToLower()].TraitInfoOrDefault<AircraftInfo>();
var aircraftInfo = self.World.Map.Rules.Actors[deliveringActorName.ToLowerInvariant()].TraitInfoOrDefault<AircraftInfo>();
if (aircraftInfo != null)
spawn += new WVec(0, 0, aircraftInfo.CruiseAltitude.Length);