sajty/ember — comment on commit 140459875b2dcad32a0ea0d341fda453b79b65ba
File: src/components/ogre/EmberEntity.cpp line 68
By sajty:

This seemed for me to be the simplest solution.
Feel free to find a better way. :)
Its always reproducible crash so I can test other solutions for you. :)