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:
committed by
Pieter-Jan Briers
parent
5eefc7fd45
commit
e381920e86
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user