From c6da8d2fbdd796fc9f326e5123fdb23d17bfdd4e Mon Sep 17 00:00:00 2001 From: minggo Date: Wed, 4 Jan 2012 10:14:46 +0800 Subject: [PATCH] call correct java method --- cocos2dx/platform/android/jni/MessageJni.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/platform/android/jni/MessageJni.cpp b/cocos2dx/platform/android/jni/MessageJni.cpp index 33602eda52..bdf7475a3d 100644 --- a/cocos2dx/platform/android/jni/MessageJni.cpp +++ b/cocos2dx/platform/android/jni/MessageJni.cpp @@ -113,7 +113,7 @@ extern "C" , "terminateProcess" , "()V")) { - t.env->CallStaticObjectMethod(t.classID, t.methodID); + t.env->CallStaticVoidMethod(t.classID, t.methodID); t.env->DeleteLocalRef(t.classID); } }