Changed array initialization to use {...} (#698)
parent
d00720a2f2
commit
500bd1753f
|
@ -61,7 +61,7 @@ CBotInstr* CBotListArray::Compile(CBotToken* &p, CBotCStack* pStack, CBotTypResu
|
||||||
|
|
||||||
CBotListArray* inst = new CBotListArray();
|
CBotListArray* inst = new CBotListArray();
|
||||||
|
|
||||||
if (IsOfType( p, ID_OPENPAR ))
|
if (IsOfType( p, ID_OPBLK ))
|
||||||
{
|
{
|
||||||
// each element takes the one after the other
|
// each element takes the one after the other
|
||||||
if (type.Eq( CBotTypArrayPointer ))
|
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());
|
pStk->SetError(CBotErrClosePar, p->GetStart());
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue