TGEA 1.7.1 FindMatch::isMatch bugfix
by asmaloney (Andy) · in Torque Game Engine Advanced · 09/23/2008 (12:41 pm) · 2 replies
case '*':
e++;
match = false;
[b]while( ((s=dStrchr(s,*e)) !=NULL) && !match )[/b]
{
match = isMatch( e, s, caseSensitive );
s++;
}
return( match );should be:
case '*':
e++;
match = false;
[b]while( !match && (*s != '[[62810f246ecd5]]') && ((s=dStrchr(s,*e)) != NULL) )[/b]
{
match = isMatch( e, s, caseSensitive );
s++;
}
return( match );otherwise you can run off the end of the string...
This fixes a crash on exit bug.
#2
09/23/2008 (1:49 pm)
No problem Matt. I remember fixing this in builder, it just didn't make it to TGEA.
Associate Matt Fairfax
PopCap