From e381920e86971cdf3f28314c2968bc58b48a9fb5 Mon Sep 17 00:00:00 2001 From: clusterfack <8516830+clusterfack@users.noreply.github.com> Date: Sat, 30 Mar 2019 06:40:15 -0500 Subject: [PATCH] Fix Species UI Overlay Removal (#173) Soooo nameof turns a variable into a string of that variable. I'm not sure where I copied that from but ID is the proper value. --- Content.Client/GameObjects/Components/Mobs/SpeciesUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/GameObjects/Components/Mobs/SpeciesUI.cs b/Content.Client/GameObjects/Components/Mobs/SpeciesUI.cs index a8fc72ba7f..08b0f4b8ce 100644 --- a/Content.Client/GameObjects/Components/Mobs/SpeciesUI.cs +++ b/Content.Client/GameObjects/Components/Mobs/SpeciesUI.cs @@ -118,7 +118,7 @@ namespace Content.Client.GameObjects if (_currentEffect != ScreenEffects.None) { var appliedeffect = EffectsDictionary[_currentEffect]; - _overlayManager.RemoveOverlay(nameof(appliedeffect)); + _overlayManager.RemoveOverlay(appliedeffect.ID); } _currentEffect = ScreenEffects.None;