diff --git a/main/gbx/gbx_api.c b/main/gbx/gbx_api.c index e1367d006..8b273c333 100644 --- a/main/gbx/gbx_api.c +++ b/main/gbx/gbx_api.c @@ -967,7 +967,7 @@ bool GB_GetFunction(GB_FUNCTION *_func, void *object, const char *name, const ch } } - func->object = object; + func->object = kind == CD_STATIC_METHOD ? NULL : object; func->desc = &desc->method; if (!func->desc)