From 1d647943496dd99db3bda6d1720fd5debb0280a8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 9 Oct 2001 17:20:39 +0000 Subject: [PATCH] Cast our context and config references before calling super.init() so that things are set up properly when createPlaceView() is called. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@409 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/parlor/game/GameController.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/parlor/game/GameController.java b/src/java/com/threerings/parlor/game/GameController.java index c8920af95..53e2a76b4 100644 --- a/src/java/com/threerings/parlor/game/GameController.java +++ b/src/java/com/threerings/parlor/game/GameController.java @@ -1,5 +1,5 @@ // -// $Id: GameController.java,v 1.3 2001/10/06 01:36:19 mdb Exp $ +// $Id: GameController.java,v 1.4 2001/10/09 17:20:39 mdb Exp $ package com.threerings.parlor.client; @@ -44,11 +44,13 @@ public abstract class GameController */ public void init (PartyContext ctx, PlaceConfig config) { - super.init(ctx, config); - - // cast our references + // cast our references before we call super.init() so that when + // super.init() calls createPlaceView(), we have our casted + // references already in place _ctx = (ParlorContext)ctx; _config = (GameConfig)config; + + super.init(ctx, config); } // documentation inherited