Fix "failed to open file" error when no startup script is given

deque
scrawl 10 years ago
parent dd5f4947d7
commit 616148e168

@ -259,7 +259,8 @@ namespace MWWorld
mWeatherManager = 0;
mWeatherManager = new MWWorld::WeatherManager(mRendering,&mFallback);
MWBase::Environment::get().getWindowManager()->executeInConsole(mStartupScript);
if (!mStartupScript.empty())
MWBase::Environment::get().getWindowManager()->executeInConsole(mStartupScript);
}
void World::clear()

Loading…
Cancel
Save