Browse Source

Add missing call to CInterface::IsMethod

Lukas Aldershaab 4 years ago
parent
commit
55f459cf2d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Engine/source/console/consoleFunctions.cpp

+ 5 - 0
Engine/source/console/consoleFunctions.cpp

@@ -30,6 +30,7 @@
 #include "console/consoleFunctions.h"
 #endif
 
+#include "cinterface/cinterface.h"
 #include "core/strings/findMatch.h"
 #include "core/strings/stringUnit.h"
 #include "core/strings/unicode.h"
@@ -2426,6 +2427,10 @@ DefineEngineFunction( isMethod, bool, ( const char* nameSpace, const char* metho
    "@return True if the method exists, false if not\n"
    "@ingroup Scripting\n")
 {
+   if (CInterface::isMethod(nameSpace, method)) {
+      return true;
+   }
+
    Namespace* ns = Namespace::find( StringTable->insert( nameSpace ) );
    Namespace::Entry* nse = ns->lookup( StringTable->insert( method ) );
    if( !nse )