You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Use long instead of int for object id in Android java wrapper
Using int for 64-bit values might cause issues with objects not found in ObjectDB when the id is truncated.
This commit is contained in:
@@ -189,7 +189,7 @@ public class GodotLib {
|
||||
* @param p_method Name of the method to invoke
|
||||
* @param p_params Parameters to use for method invocation
|
||||
*/
|
||||
public static native void callobject(int p_id, String p_method, Object[] p_params);
|
||||
public static native void callobject(long p_id, String p_method, Object[] p_params);
|
||||
|
||||
/**
|
||||
* Invoke method |p_method| on the Godot object specified by |p_id| during idle time.
|
||||
@@ -197,7 +197,7 @@ public class GodotLib {
|
||||
* @param p_method Name of the method to invoke
|
||||
* @param p_params Parameters to use for method invocation
|
||||
*/
|
||||
public static native void calldeferred(int p_id, String p_method, Object[] p_params);
|
||||
public static native void calldeferred(long p_id, String p_method, Object[] p_params);
|
||||
|
||||
/**
|
||||
* Forward the results from a permission request.
|
||||
|
||||
Reference in New Issue
Block a user