From 55f459cf2d51a97aa80393edf811085144a5277c Mon Sep 17 00:00:00 2001 From: Lukas Aldershaab Date: Sun, 18 Oct 2020 02:23:37 +0200 Subject: [PATCH] Add missing call to CInterface::IsMethod --- Engine/source/console/consoleFunctions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index e54b4c5ae..2b04236b1 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/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 )