diff --git a/Robust.Client/GameObjects/EntitySystems/ContainerSystem.cs b/Robust.Client/GameObjects/EntitySystems/ContainerSystem.cs index d646d34541a..774bf309b7f 100644 --- a/Robust.Client/GameObjects/EntitySystems/ContainerSystem.cs +++ b/Robust.Client/GameObjects/EntitySystems/ContainerSystem.cs @@ -241,7 +241,7 @@ public void AddExpectedEntity(NetEntity netEntity, BaseContainer container) #if DEBUG var uid = GetEntity(netEntity); - if (TryComp(uid, out var meta)) + if (TryComp(uid, out MetaDataComponent? meta)) { DebugTools.Assert((meta.Flags & ( MetaDataFlags.Detached | MetaDataFlags.InContainer) ) == MetaDataFlags.Detached, $"Adding entity {ToPrettyString(uid)} to list of expected entities for container {container.ID} in {ToPrettyString(container.Owner)}, despite it already being in a container."); diff --git a/Robust.Shared/GameObjects/Systems/SharedMapSystem.Grid.cs b/Robust.Shared/GameObjects/Systems/SharedMapSystem.Grid.cs index 47a750f05f7..0fade481c5e 100644 --- a/Robust.Shared/GameObjects/Systems/SharedMapSystem.Grid.cs +++ b/Robust.Shared/GameObjects/Systems/SharedMapSystem.Grid.cs @@ -532,7 +532,7 @@ private void OnGridStartup(EntityUid uid, MapGridComponent component, ComponentS private void OnGridRemove(EntityUid uid, MapGridComponent component, ComponentShutdown args) { Log.Info($"Removing grid {ToPrettyString(uid)}"); - if (TryComp(uid, out var xform) && xform.MapUid != null) + if (TryComp(uid, out TransformComponent? xform) && xform.MapUid != null) { RemoveGrid(uid, component, xform.MapUid.Value); }