[colobot] 212/377: Changed array initialization to use {...} (#698)

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 500bd1753fb3b1e72baa68454d1db66e41c37c46
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Dec 26 20:05:00 2015 +0100

    Changed array initialization to use {...} (#698)
---
 src/CBot/CBotInstr/CBotListArray.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CBot/CBotInstr/CBotListArray.cpp b/src/CBot/CBotInstr/CBotListArray.cpp
index f40e9c4..00ae062 100644
--- a/src/CBot/CBotInstr/CBotListArray.cpp
+++ b/src/CBot/CBotInstr/CBotListArray.cpp
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list