forked from Mirrors/openclonk
Fix crash when starting a game in fullscreen mode
parent
7177c261b3
commit
f7376169b9
|
@ -990,7 +990,8 @@ static C4Def * FnGetDefinition(C4PropList * _this, long iIndex)
|
|||
static C4String * FnGetDefinitionGroupPath(C4PropList * _this)
|
||||
{
|
||||
// Must have loaded all paths
|
||||
::Console.EnsureDefinitionListInitialized();
|
||||
if (Application.isEditor)
|
||||
::Console.EnsureDefinitionListInitialized();
|
||||
// Resolve definition
|
||||
C4Def *def = _this->GetDef();
|
||||
if (!def || !def->ConsoleGroupPath.getData()) return nullptr;
|
||||
|
|
Loading…
Reference in New Issue