From f1f0ac3f6a6adda57cb8cf9a515f7d5273aa479b Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 28 Apr 2009 17:40:32 +0000 Subject: [PATCH] Back to this, for now. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@822 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/parlor/game/client/GameController.as | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/parlor/game/client/GameController.as b/src/as/com/threerings/parlor/game/client/GameController.as index fb9f21e8..1cbdf81e 100644 --- a/src/as/com/threerings/parlor/game/client/GameController.as +++ b/src/as/com/threerings/parlor/game/client/GameController.as @@ -174,10 +174,9 @@ public /*abstract*/ class GameController extends PlaceController * * @param spec a Name or OccupantInfo. */ - public function getPlayerPersistentId (spec :*) :int + public function getPlayerPersistentId (name :Name) :int { - return (_userIder == null) ? 0 : - _userIder.getUserId((spec is OccupantInfo) ? OccupantInfo(spec).username : Name(spec)); + return (_userIder == null) ? 0 : _userIder.getUserId(name); } /**