diff --git a/port/jassimp/jassimp-native/src/jassimp.cpp b/port/jassimp/jassimp-native/src/jassimp.cpp index 75b1bc510..5dbcb22cd 100644 --- a/port/jassimp/jassimp-native/src/jassimp.cpp +++ b/port/jassimp/jassimp-native/src/jassimp.cpp @@ -214,7 +214,7 @@ static bool getStaticField(JNIEnv *env, const char* className, const char* field return false; } - jfieldID fieldId = env->GetFieldID(clazz, fieldName, signature); + jfieldID fieldId = env->GetStaticFieldID(clazz, fieldName, signature); if (NULL == fieldId) {