diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 5543deee..640d9de6 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); }