1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 10:53:53 +00:00

changed a method for ogre 1.8.0

This commit is contained in:
scrawl 2012-09-14 14:49:56 +02:00
parent 1f7e044fad
commit 565aad3783

View file

@ -70,7 +70,7 @@ namespace Render
if(typeid(*rend) == typeid(Ogre::SubEntity))
{
const Ogre::SubEntity *subEntity = static_cast<const Ogre::SubEntity *>(rend);
int id = subEntity->getParent ()->getUserObjectBindings().getUserAny().get<int>();
int id = Ogre::any_cast<int>(subEntity->getParent ()->getUserObjectBindings().getUserAny());
bool found = false;
Ogre::ColourValue colour;
for (std::map<Ogre::ColourValue, int>::iterator it = mColourMap.begin(); it != mColourMap.end(); ++it)