From 4bf6d9e1711482348fc838d08ea78300a6a476d0 Mon Sep 17 00:00:00 2001 From: IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com> Date: Thu, 20 Jun 2024 06:04:07 -0400 Subject: [PATCH] add a type specifier where one was forgor (#29250) * add a type specifier where one was forgor * Fix other way because degub conditions * okay this feels kinda dumb but it does fix it. * Update Content.Client/Effects/ColorFlashEffectSystem.cs --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> --- Content.Client/Effects/ColorFlashEffectSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/Effects/ColorFlashEffectSystem.cs b/Content.Client/Effects/ColorFlashEffectSystem.cs index 0570b4951e..956c946524 100644 --- a/Content.Client/Effects/ColorFlashEffectSystem.cs +++ b/Content.Client/Effects/ColorFlashEffectSystem.cs @@ -109,12 +109,12 @@ public sealed class ColorFlashEffectSystem : SharedColorFlashEffectSystem continue; } -#if DEBUG if (!TryComp(ent, out ColorFlashEffectComponent? comp)) { +#if DEBUG DebugTools.Assert(!_animation.HasRunningAnimation(ent, AnimationKey)); - } #endif + } _animation.Stop(ent, AnimationKey); var animation = GetDamageAnimation(ent, color, sprite); @@ -124,7 +124,7 @@ public sealed class ColorFlashEffectSystem : SharedColorFlashEffectSystem continue; } - comp = EnsureComp(ent); + EnsureComp(ent, out comp); comp.NetSyncEnabled = false; comp.Color = sprite.Color;