This commit is contained in:
Perttu Ahola 2014-10-01 19:00:40 +03:00
parent 621afca60c
commit 021fb9d57f

View File

@ -101,6 +101,8 @@ struct CState: public State, public interface::Server
magic::SharedPtr<magic::Scene> m_magic_scene; magic::SharedPtr<magic::Scene> m_magic_scene;
// NOTE: m_magic_mutex must be locked when constructing or destructing // NOTE: m_magic_mutex must be locked when constructing or destructing
// modules. In every other case modules must use access_scene(). // modules. In every other case modules must use access_scene().
// NOTE: If not locked, creating or destructing Urho3D Objects can cause a
// crash.
interface::Mutex m_magic_mutex; interface::Mutex m_magic_mutex;
sm_<ss_, ModuleContainer> m_modules; sm_<ss_, ModuleContainer> m_modules;