From d9e818e5d9d3b2d31eeed1ed029c47276e74b61a Mon Sep 17 00:00:00 2001 From: Fyren Date: Sat, 19 Jun 2010 15:17:10 -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 5543deee9..640d9de65 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); }