mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 01:18:46 +00:00
'Fixed' the Mission Compiler crash.
This commit is contained in:
parent
2b31989661
commit
cc9647c098
1 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,14 @@ MissionCompilerMainWindow::MissionCompilerMainWindow(QWidget *parent) :
|
|||
|
||||
NLLIGO::Register();
|
||||
// TODO try/catch exception. Crashes if path invalid.
|
||||
m_ligoConfig.readPrimitiveClass(NLMISC::CPath::lookup("world_editor_classes.xml").c_str(), false);
|
||||
try{
|
||||
m_ligoConfig.readPrimitiveClass(NLMISC::CPath::lookup("world_editor_classes.xml").c_str(), false);
|
||||
}
|
||||
catch( NLMISC::Exception &e )
|
||||
{
|
||||
nlinfo( "Exception occured during Mission Compiler LIGO startup: %s", e.what() );
|
||||
}
|
||||
|
||||
NLLIGO::CPrimitiveContext::instance().CurrentLigoConfig = &m_ligoConfig;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue