From c27f003603a50ead93f6c57e4d176c4d0a603ca3 Mon Sep 17 00:00:00 2001 From: Redix Date: Thu, 10 Jan 2019 23:27:59 +0100 Subject: [PATCH] Fix `str_endswith` usage in the editor file-selector --- src/game/editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 8e1c5b75b..38eab390f 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -3031,7 +3031,7 @@ static int EditorListdirCallback(const char *pName, int IsDir, int StorageType, } if(str_comp(pName, ".") == 0 || (str_comp(pName, "..") == 0 && (str_comp(pEditor->m_pFileDialogPath, "maps") == 0 || str_comp(pEditor->m_pFileDialogPath, "mapres") == 0)) - || (pExt && !IsDir && str_endswith(pName, pExt))) + || (pExt && !IsDir && !str_endswith(pName, pExt))) { return 0; }