1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 14:15:32 +00:00

Another minor fix

This commit is contained in:
Nicolay Korslund 2010-08-12 16:50:20 +02:00
parent fb2d077ca9
commit 86a811c736

View file

@ -14,15 +14,15 @@ namespace Sound {
struct OgreOutputUpdater : Ogre::FrameListener struct OgreOutputUpdater : Ogre::FrameListener
{ {
Mangle::Sound::SoundFactory &driver; Mangle::Sound::SoundFactoryPtr driver;
OgreOutputUpdater(Mangle::Sound::SoundFactory &drv) OgreOutputUpdater(Mangle::Sound::SoundFactoryPtr drv)
: driver(drv) : driver(drv)
{ assert(drv.needsUpdate); } { assert(drv->needsUpdate); }
bool frameStarted(const Ogre::FrameEvent &evt) bool frameStarted(const Ogre::FrameEvent &evt)
{ {
driver.update(); driver->update();
return true; return true;
} }
}; };