Created
December 3, 2017 21:23
-
-
Save Kryzarel/ecad66bb7517f436824114aa5e956ea8 to your computer and use it in GitHub Desktop.
Updated to set isDirty only when Remove returns true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool RemoveModifier(StatModifier mod) | |
{ | |
if (statModifiers.Remove(mod)) | |
{ | |
isDirty = true; | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment