Fix crash when starting a game in fullscreen mode

console-destruction
Lukas Werling 2016-09-08 21:26:59 +02:00
parent 7177c261b3
commit f7376169b9
1 changed files with 2 additions and 1 deletions

View File

@ -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;