From a30dca85812d6f9a05e4aaf75f299086763ed905 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Sun, 28 Oct 2007 15:05:27 +0000 Subject: [PATCH] Oops, warnings, I guess they don't auto-cast function references to booleans without grumbling. Good for them I suppose. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4859 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/client/OccupantAdapter.as | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/crowd/client/OccupantAdapter.as b/src/as/com/threerings/crowd/client/OccupantAdapter.as index 57fe3e16c..0efd09634 100644 --- a/src/as/com/threerings/crowd/client/OccupantAdapter.as +++ b/src/as/com/threerings/crowd/client/OccupantAdapter.as @@ -37,7 +37,7 @@ public class OccupantAdapter // from interface OccupantObserver public function occupantEntered (info :OccupantInfo) :void { - if (_entered) { + if (_entered != null) { _entered(info); } } @@ -45,7 +45,7 @@ public class OccupantAdapter // from interface OccupantObserver public function occupantLeft (info :OccupantInfo) :void { - if (_left) { + if (_left != null) { _left(info); } } @@ -53,7 +53,7 @@ public class OccupantAdapter // from interface OccupantObserver public function occupantUpdated (oldinfo :OccupantInfo, newinfo :OccupantInfo) :void { - if (_updated) { + if (_updated != null) { _updated(oldinfo, newinfo); } }