From eab2ae7d91dfcfb0455a06ef4436e713da7f15c2 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 9 Apr 2007 20:45:03 +0000 Subject: [PATCH] Set gameconfig to an empty object until populated by the backend. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@273 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/EZGameControl.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/ezgame/EZGameControl.as b/src/as/com/threerings/ezgame/EZGameControl.as index 4058fc42..da55d737 100644 --- a/src/as/com/threerings/ezgame/EZGameControl.as +++ b/src/as/com/threerings/ezgame/EZGameControl.as @@ -612,9 +612,8 @@ public class EZGameControl extends BaseControl { // get our gamedata _gameData = o.gameData; - _gameConfig = o.gameConfig; - if (_gameConfig == null) { - _gameConfig = {}; + if (o.gameConfig != null) { + _gameConfig = o.gameConfig; } // and functions @@ -684,7 +683,7 @@ public class EZGameControl extends BaseControl protected var _gameData :Object; /** Contains any custom game configuration data. */ - protected var _gameConfig :Object; + protected var _gameConfig :Object = {}; /** Contains functions exposed to us from the EZGame host. */ protected var _funcs :Object;