opl must be sent in all cases for proper display of vendor items

minor bug in name verification
This commit is contained in:
mark 2008-01-10 20:20:19 +00:00
parent 0fba903e3a
commit 5741d5e371
2 changed files with 13 additions and 17 deletions

View file

@ -35,7 +35,7 @@ namespace Server.Misc
public static bool Validate( string name, int minLength, int maxLength, bool allowLetters, bool allowDigits, bool noExceptionsAtStart, int maxExceptions, char[] exceptions, string[] disallowed, string[] startDisallowed )
{
if ( name.Length < minLength || name.Length > maxLength )
if ( name == null || name.Length < minLength || name.Length > maxLength )
return false;
int exceptCount = 0;