diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 52f7753dbf..a5c0adbf15 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -116,7 +116,6 @@ bool OMW::Engine::frameRenderingQueued (const Ogre::FrameEvent& evt) } } - srand ( time(NULL) ); int r = rand() % total; //old random code int pos = 0; soundIter = test.soundList.begin(); @@ -221,6 +220,7 @@ OMW::Engine::Engine(Cfg::ConfigurationManager& configurationManager) , mFSStrict (false) , mCfgMgr(configurationManager) { + std::srand ( std::time(NULL) ); MWClass::registerClasses(); }