mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-13 15:28:04 +03:00
Compiler: Fix a regression in handling multi-dimensional arrays (introduced in 744d67b)
Fix imported from Pawn 3.3.4058.
This commit is contained in:
parent
d44eb7bf8d
commit
cea2f598b2
@ -2250,7 +2250,7 @@ static void initials(int ident,int tag,cell *size,int dim[],int numdim,
|
|||||||
err++;
|
err++;
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* for */
|
} /* 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
|
/* also look whether, by any chance, all "counted" final dimensions are
|
||||||
* the same value; if so, we can store this
|
* the same value; if so, we can store this
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user