diff --git a/Content.Client/Decals/Overlays/DecalOverlay.cs b/Content.Client/Decals/Overlays/DecalOverlay.cs index 60b24c154b..8eb1a25664 100644 --- a/Content.Client/Decals/Overlays/DecalOverlay.cs +++ b/Content.Client/Decals/Overlays/DecalOverlay.cs @@ -59,8 +59,14 @@ namespace Content.Client.Decals.Overlays { foreach (var decal in decals.Values) { - if (!_cachedTextures.TryGetValue(decal.Id, out var cache) && _prototypeManager.TryIndex(decal.Id, out var decalProto)) + if (!_cachedTextures.TryGetValue(decal.Id, out var cache)) { + // Nothing to cache someone messed up + if (!_prototypeManager.TryIndex(decal.Id, out var decalProto)) + { + continue; + } + cache = (_sprites.Frame0(decalProto.Sprite), decalProto.SnapCardinals); _cachedTextures[decal.Id] = cache; }