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:
parent
d1cb73b47a
commit
67a706fc1b
17 changed files with 125 additions and 136 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue