You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Rename remove() to remove_at() when removing by index
This commit is contained in:
committed by
Aaron Record
parent
5efe80f308
commit
e078f970db
@@ -762,7 +762,7 @@ void AudioServer::remove_bus(int p_index) {
|
||||
lock();
|
||||
bus_map.erase(buses[p_index]->name);
|
||||
memdelete(buses[p_index]);
|
||||
buses.remove(p_index);
|
||||
buses.remove_at(p_index);
|
||||
unlock();
|
||||
|
||||
emit_signal(SNAME("bus_layout_changed"));
|
||||
@@ -833,7 +833,7 @@ void AudioServer::move_bus(int p_bus, int p_to_pos) {
|
||||
}
|
||||
|
||||
Bus *bus = buses[p_bus];
|
||||
buses.remove(p_bus);
|
||||
buses.remove_at(p_bus);
|
||||
|
||||
if (p_to_pos == -1) {
|
||||
buses.push_back(bus);
|
||||
@@ -1026,7 +1026,7 @@ void AudioServer::remove_bus_effect(int p_bus, int p_effect) {
|
||||
|
||||
lock();
|
||||
|
||||
buses[p_bus]->effects.remove(p_effect);
|
||||
buses[p_bus]->effects.remove_at(p_effect);
|
||||
_update_bus_effects(p_bus);
|
||||
|
||||
unlock();
|
||||
|
||||
Reference in New Issue
Block a user