mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Fix "failed to open file" error when no startup script is given
This commit is contained in:
parent
dd5f4947d7
commit
616148e168
@ -259,6 +259,7 @@ namespace MWWorld
|
||||
mWeatherManager = 0;
|
||||
mWeatherManager = new MWWorld::WeatherManager(mRendering,&mFallback);
|
||||
|
||||
if (!mStartupScript.empty())
|
||||
MWBase::Environment::get().getWindowManager()->executeInConsole(mStartupScript);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user