Add missing call to CInterface::IsMethod

This commit is contained in:
Lukas Aldershaab 2020-10-18 02:23:37 +02:00
parent 97edf1ae34
commit 55f459cf2d

View file

@ -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 )