From e332f4e12b18e0a57aceebb6d6382d726c73690d Mon Sep 17 00:00:00 2001 From: Fyren Date: Sat, 19 Jun 2010 15:15:23 -0700 Subject: [PATCH] Possible dynamic array dimension fix (bug 4428, r=dvander) --- sourcepawn/compiler/sc1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 3deb4696..58017c6d 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -2341,7 +2341,10 @@ static int declloc(int fstatic) stradjust(sPRI); } pushreg(sPRI); + /* No idea why this is here, but it throws away dimension info which + would otherwise be used by addvariable2 below. memset(dim, 0, sizeof(int)*sDIMEN_MAX); + */ ident = iREFARRAY; genarray(numdim, autozero); }