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.
This commit is contained in:
clusterfack
2019-03-30 06:40:15 -05:00
committed by Pieter-Jan Briers
parent 5eefc7fd45
commit e381920e86

View File

@@ -118,7 +118,7 @@ namespace Content.Client.GameObjects
if (_currentEffect != ScreenEffects.None) if (_currentEffect != ScreenEffects.None)
{ {
var appliedeffect = EffectsDictionary[_currentEffect]; var appliedeffect = EffectsDictionary[_currentEffect];
_overlayManager.RemoveOverlay(nameof(appliedeffect)); _overlayManager.RemoveOverlay(appliedeffect.ID);
} }
_currentEffect = ScreenEffects.None; _currentEffect = ScreenEffects.None;