Use ClassUtil.isSameClass().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@40 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -133,7 +133,7 @@ public /*abstract*/ class GameConfig extends PlaceConfig
|
|||||||
public function equals (other :Object) :Boolean
|
public function equals (other :Object) :Boolean
|
||||||
{
|
{
|
||||||
// make sure they're of the same class
|
// make sure they're of the same class
|
||||||
if (ClassUtil.getClassName(other) == ClassUtil.getClassName(this)) {
|
if (ClassUtil.isSameClass(other, this)) {
|
||||||
var that :GameConfig = GameConfig(other);
|
var that :GameConfig = GameConfig(other);
|
||||||
return this.rated == that.rated;
|
return this.rated == that.rated;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user