From cea2f598b2843b706e4b94867864592e8b47b8ff Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sun, 17 Aug 2014 10:41:23 +0200 Subject: [PATCH] Compiler: Fix a regression in handling multi-dimensional arrays (introduced in 744d67b) Fix imported from Pawn 3.3.4058. --- compiler/libpc300/sc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/libpc300/sc1.c b/compiler/libpc300/sc1.c index 8a73535e..43e2c347 100755 --- a/compiler/libpc300/sc1.c +++ b/compiler/libpc300/sc1.c @@ -2250,7 +2250,7 @@ static void initials(int ident,int tag,cell *size,int dim[],int numdim, err++; } /* if */ } /* for */ - if (numdim>1 && dim[numdim-1]==0) { + if (numdim>1 && dim[numdim-1]==0 && !errorfound && err==0) { /* also look whether, by any chance, all "counted" final dimensions are * the same value; if so, we can store this */