forked from teamnwah/openmw-tes3coop
Don't try to play an empty video
This commit is contained in:
parent
cd81ec92db
commit
04e827ecf6
1 changed files with 5 additions and 1 deletions
|
@ -260,7 +260,11 @@ namespace MWWorld
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bypass)
|
if (!bypass)
|
||||||
MWBase::Environment::get().getWindowManager()->playVideo(mFallback.getFallbackString("Movies_New_Game"), true);
|
{
|
||||||
|
std::string video = mFallback.getFallbackString("Movies_New_Game");
|
||||||
|
if (!video.empty())
|
||||||
|
MWBase::Environment::get().getWindowManager()->playVideo(video, true);
|
||||||
|
}
|
||||||
|
|
||||||
// enable collision
|
// enable collision
|
||||||
//if (!mPhysics->toggleCollisionMode())
|
//if (!mPhysics->toggleCollisionMode())
|
||||||
|
|
Loading…
Reference in a new issue