Use setModified() instead of modifying our value directly. That way it can be
overridden to intercept such things if necessary (it's not necesary in this case, we're just trying to set a good example for future programmers). git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@667 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -30,7 +30,7 @@ public class IntStat extends Stat
|
||||
{
|
||||
if (value != _value) {
|
||||
_value = value;
|
||||
_modified = true;
|
||||
setModified(true);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user