Aul: Join AB_STRING+AB_ARRAYA to AB_PROP

directional-lights
Nicolas Hake 2016-05-01 13:53:38 +02:00
parent f2bf34ff3e
commit 34556e3e81
1 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,13 @@ int C4AulCompiler::AddBCC(const char * TokenSPos, C4AulBCCType eType, intptr_t X
pCPos1->Par.i = X + 1;
return Fn->GetCodePos() - 1;
}
// Join AB_STRING + AB_ARRAYA to AB_PROP
if (eType == AB_ARRAYA && pCPos1->bccType == AB_STRING)
{
pCPos1->bccType = AB_PROP;
return Fn->GetCodePos() - 1;
}
}
// Add