wesnoth/wesnoth — pull request #291 by LovCAPONE (2014-10-03 22:39:04+00:00)
Title: Fix bug #22745: choose_track function crashes the game in certain cases

This concerns https://gna.org/bugs/index.php?22745

In certain cases, in the function "choose_track" (sound.cpp" member "current_track_index" can be greater than
"current_track_list.size()" thus causing an "index out of range" error.

For more details see the bug report linked above.