From 27536ce74c0a22b6906b512d29b14ab330937fbb Mon Sep 17 00:00:00 2001 From: sergey-miryanov Date: Wed, 4 Dec 2013 20:32:40 +0600 Subject: [PATCH] Fix JNI if calling member methods that return int --- project/src/platform/android/JNI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/platform/android/JNI.cpp b/project/src/platform/android/JNI.cpp index f04e47dcf..5c22800ff 100644 --- a/project/src/platform/android/JNI.cpp +++ b/project/src/platform/android/JNI.cpp @@ -1119,7 +1119,7 @@ struct JNIMethod : public lime::Object result = alloc_int(env->CallShortMethodA(inObject, mMethod, jargs)); break; case jniInt: - result = alloc_int(env->CallIntMethodA(mClass, mMethod, jargs)); + result = alloc_int(env->CallIntMethodA(inObject, mMethod, jargs)); break; case jniLong: result = alloc_int(env->CallLongMethodA(inObject, mMethod, jargs));