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
1 changed files with 1 additions and 1 deletions

View File

@ -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;