mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 20:33:08 +00:00
Fixup a77c40f10517
Since track_ok is used as a loop control, we need to return true if current_track is null in order to break out, else we get stuck in an infinite loop.
This commit is contained in:
parent
2c5a2ea20d
commit
5d423ae66b
@ -263,7 +263,7 @@ static bool track_ok(const std::string& id)
|
||||
LOG_AUDIO << "Considering " << id << "\n";
|
||||
|
||||
if(!current_track) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// If they committed changes to list, we forget previous plays, but
|
||||
|
Loading…
x
Reference in New Issue
Block a user