Fixed amb1899 - Duplicate maps in auto generated maplists

--HG--
branch : sourcemod-1.0.x
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402437
This commit is contained in:
Matt Woodrow 2008-08-07 23:31:53 +00:00
parent f2dd5f6914
commit d6cd6bd5a9

View File

@ -387,7 +387,7 @@ public:
continue; continue;
} }
strncopy(buffer, pDir->GetEntryName(), sizeof(buffer)); strncopy(buffer, pDir->GetEntryName(), sizeof(buffer));
if ((ptr = strstr(buffer, ".bsp")) == NULL) if ((ptr = strstr(buffer, ".bsp")) == NULL || ptr[4] != '\0')
{ {
pDir->NextEntry(); pDir->NextEntry();
continue; continue;