fix a bug in the jni call write haptics
This commit is contained in:
@@ -204,7 +204,8 @@ int32 FSGConnectJNI::WriteHaptics(const int32 DeviceAddress, const FString& Hapt
|
||||
if (Method)
|
||||
{
|
||||
jstring HapticsString = Env->NewStringUTF(TCHAR_TO_UTF8(*Haptics));
|
||||
Result = Env->CallStaticIntMethod(Class, Method, HapticsString);
|
||||
Result = Env->CallStaticIntMethod(Class, Method, HapticsString, DeviceAddress, HapticsString);
|
||||
Env->DeleteLocalRef(HapticsJString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user