You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix unsafe uses of Callable.is_null()
`Callable.is_null()` is not equivalent to `!Callable.is_valid()` and doesn't guarantee the call is valid.
This commit is contained in:
@@ -4992,7 +4992,7 @@ void DisplayServerX11::process_events() {
|
||||
files.write[i] = files[i].replace("file://", "").uri_decode();
|
||||
}
|
||||
|
||||
if (!windows[window_id].drop_files_callback.is_null()) {
|
||||
if (windows[window_id].drop_files_callback.is_valid()) {
|
||||
windows[window_id].drop_files_callback.call(files);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user