From 2541527cd700913dd450256a7330ae1cb3bd4341 Mon Sep 17 00:00:00 2001 From: Jak Daniels Date: Wed, 24 Dec 2014 16:50:47 +0000 Subject: [PATCH] Fix regression where m_scene not yet defined when adding console commands --- Module/BirdsModule/FlockingModule.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Module/BirdsModule/FlockingModule.cs b/Module/BirdsModule/FlockingModule.cs index e1d10da..023dfc7 100644 --- a/Module/BirdsModule/FlockingModule.cs +++ b/Module/BirdsModule/FlockingModule.cs @@ -129,9 +129,11 @@ namespace Flocking m_borderSize = cnf.GetFloat("BirdsRegionBorderSize", 5f); m_maxHeight = cnf.GetInt("BirdsMaxHeight", 256); - m_log.InfoFormat("[{0}] Enabled on channel {1} with Flock Size {2}", m_name, m_chatChannel, m_flockSize); + m_log.InfoFormat("[{0}] Enabled on channel {1} with Flock Size {2}", m_name, m_chatChannel, m_flockSize); + + m_scene = scene; - //register commands + //register commands with the scene RegisterCommands(); //register handlers @@ -143,7 +145,7 @@ namespace Flocking m_view = new FlockingView(scene); m_view.BirdPrim = m_birdPrim; m_frame = 0; - m_scene = scene; + } }