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

@ -131,7 +131,9 @@ namespace Flocking
m_log.InfoFormat("[{0}] Enabled on channel {1} with Flock Size {2}", m_name, m_chatChannel, m_flockSize);
//register commands
m_scene = scene;
//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;
}
}