diff --git a/src/meta_jni.hpp b/src/meta_jni.hpp index 1ba4efc..7ee20c3 100644 --- a/src/meta_jni.hpp +++ b/src/meta_jni.hpp @@ -726,7 +726,7 @@ namespace jni } template - static klass new_object(jni::constructor klass::*constructor, const method_parameters_type&... method_parameters) + static klass new_object(jni::constructor members_type::*constructor, const method_parameters_type&... method_parameters) { klass tmp{}; //lmao return klass{jni::get_env()->NewObject(get_cached_jclass(), jmethodID(tmp.*constructor), std::conditional_t, method_parameters_type, jobject>(method_parameters)...)};