You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Rename remove() to remove_at() when removing by index
This commit is contained in:
committed by
Aaron Record
parent
5efe80f308
commit
e078f970db
@@ -286,7 +286,7 @@ void DisplayServerX11::_flush_mouse_motion() {
|
||||
XIDeviceEvent *event_data = (XIDeviceEvent *)event.xcookie.data;
|
||||
if (event_data->evtype == XI_RawMotion) {
|
||||
XFreeEventData(x11_display, &event.xcookie);
|
||||
polled_events.remove(event_index--);
|
||||
polled_events.remove_at(event_index--);
|
||||
continue;
|
||||
}
|
||||
XFreeEventData(x11_display, &event.xcookie);
|
||||
|
||||
@@ -253,7 +253,7 @@ void JoypadLinux::close_joypad(int p_id) {
|
||||
if (joy.fd != -1) {
|
||||
close(joy.fd);
|
||||
joy.fd = -1;
|
||||
attached_devices.remove(attached_devices.find(joy.devpath));
|
||||
attached_devices.remove_at(attached_devices.find(joy.devpath));
|
||||
input->joy_connection_changed(p_id, false, "");
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user