mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Don't crash if no loading screens are found
This commit is contained in:
parent
ea2bbec76e
commit
3db850a7d1
1 changed files with 8 additions and 3 deletions
|
@ -226,9 +226,14 @@ namespace MWGui
|
|||
if (start == "splash")
|
||||
splash.push_back (*it);
|
||||
}
|
||||
if (splash.size())
|
||||
{
|
||||
std::string randomSplash = splash[rand() % splash.size()];
|
||||
|
||||
Ogre::TexturePtr tex = Ogre::TextureManager::getSingleton ().load (randomSplash, "General");
|
||||
mBackgroundImage->setImageTexture (randomSplash);
|
||||
}
|
||||
else
|
||||
std::cerr << "No loading screens found!" << std::endl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue