diff --git a/main/gbx/gbx_c_class.c b/main/gbx/gbx_c_class.c index 19210f9db..14c3b477b 100644 --- a/main/gbx/gbx_c_class.c +++ b/main/gbx/gbx_c_class.c @@ -765,7 +765,9 @@ BEGIN_METHOD(Object_Call, GB_OBJECT object; GB_STRING method; GB_OBJECT params) } GB_Call(&func, np, FALSE); - GB_ReturnConvVariant(); + + if (TEMP.type != T_VOID) + GB_ReturnConvVariant(); END_METHOD