Fix regression where m_scene not yet defined when adding console commands

pull/1/merge
Jak Daniels 2014-12-24 16:50:47 +00:00
parent d18d37faf6
commit 2541527cd7
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}