From 34556e3e812b9fcfe45d330eeb78bcabf52e6398 Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Sun, 1 May 2016 13:53:38 +0200 Subject: [PATCH] Aul: Join AB_STRING+AB_ARRAYA to AB_PROP --- src/script/C4AulCompiler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/script/C4AulCompiler.cpp b/src/script/C4AulCompiler.cpp index 9847d08fa..0598a9e59 100644 --- a/src/script/C4AulCompiler.cpp +++ b/src/script/C4AulCompiler.cpp @@ -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