Changed array initialization to use {...} (#698)

dev-time-step
krzys-h 2015-12-26 20:05:00 +01:00
parent d00720a2f2
commit 500bd1753f
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ CBotInstr* CBotListArray::Compile(CBotToken* &p, CBotCStack* pStack, CBotTypResu
CBotListArray* inst = new CBotListArray();
if (IsOfType( p, ID_OPENPAR ))
if (IsOfType( p, ID_OPBLK ))
{
// each element takes the one after the other
if (type.Eq( CBotTypArrayPointer ))
@ -123,7 +123,7 @@ CBotInstr* CBotListArray::Compile(CBotToken* &p, CBotCStack* pStack, CBotTypResu
}
}
if (!IsOfType(p, ID_CLOSEPAR) )
if (!IsOfType(p, ID_CLBLK) )
{
pStk->SetError(CBotErrClosePar, p->GetStart());
goto error;