From c064a1c0a44b18defd2a4c58382a6617896a4c91 Mon Sep 17 00:00:00 2001 From: Jay Dolan Date: Mon, 2 Nov 2020 17:43:23 -0500 Subject: [PATCH] Fix string comparison fail for key "model" --- radiant/pluginmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/pluginmanager.cpp b/radiant/pluginmanager.cpp index 3fc2746f..fc2ed18f 100644 --- a/radiant/pluginmanager.cpp +++ b/radiant/pluginmanager.cpp @@ -92,7 +92,7 @@ virtual void addType( const char* key, filetype_t type ){ virtual void getTypeList( const char* key, IFileTypeList* typelist ){ filetype_list_t& list_ref = m_typelists[key]; - if (key == "model") { + if ( g_strcmp0( key, "model" ) == 0 ) { // Get the list of all supported types (adapted from kaz) CString allTypesFilter; for (unsigned int i = 0; i < list_ref.size(); ++i) {