You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix various assorted warnings
Fix various warnings that don't have enough instances to merit individual commits. Also fixes a potential bug in audio_server.cpp.
This commit is contained in:
@@ -203,8 +203,9 @@ void AudioServer::_mix_step() {
|
||||
if (!bus_map.has(bus->send)) {
|
||||
bus = buses[0]; //send to master
|
||||
} else {
|
||||
int prev_index_cache = bus->index_cache;
|
||||
bus = bus_map[bus->send];
|
||||
if (bus->index_cache >= bus->index_cache) { //invalid, send to master
|
||||
if (prev_index_cache >= bus->index_cache) { //invalid, send to master
|
||||
bus = buses[0];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user