diff --git a/libs/openengine/ogre/selectionbuffer.cpp b/libs/openengine/ogre/selectionbuffer.cpp index 7b9e6f9849..3ecb99f3b4 100644 --- a/libs/openengine/ogre/selectionbuffer.cpp +++ b/libs/openengine/ogre/selectionbuffer.cpp @@ -70,7 +70,7 @@ namespace Render if(typeid(*rend) == typeid(Ogre::SubEntity)) { const Ogre::SubEntity *subEntity = static_cast(rend); - int id = subEntity->getParent ()->getUserObjectBindings().getUserAny().get(); + int id = Ogre::any_cast(subEntity->getParent ()->getUserObjectBindings().getUserAny()); bool found = false; Ogre::ColourValue colour; for (std::map::iterator it = mColourMap.begin(); it != mColourMap.end(); ++it)