From d6cd6bd5a9eafc36da8862e6fc118808a4603127 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Thu, 7 Aug 2008 23:31:53 +0000 Subject: [PATCH] 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 --- core/smn_maplists.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/smn_maplists.cpp b/core/smn_maplists.cpp index b2c228dd..16eb1d75 100644 --- a/core/smn_maplists.cpp +++ b/core/smn_maplists.cpp @@ -387,7 +387,7 @@ public: continue; } strncopy(buffer, pDir->GetEntryName(), sizeof(buffer)); - if ((ptr = strstr(buffer, ".bsp")) == NULL) + if ((ptr = strstr(buffer, ".bsp")) == NULL || ptr[4] != '\0') { pDir->NextEntry(); continue;