Fix small bug in getStaticField
authorDoug Stephen <dstephen@ihmc.us>
Wed, 11 Oct 2017 16:03:29 +0000 (11:03 -0500)
committerDoug Stephen <dstephen@ihmc.us>
Wed, 11 Oct 2017 16:03:29 +0000 (11:03 -0500)
port/jassimp/jassimp-native/src/jassimp.cpp

index 75b1bc5..5dbcb22 100644 (file)
@@ -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)
        {