summaryrefslogtreecommitdiff
path: root/StormLib/src
diff options
context:
space:
mode:
authorDavid Racine <bass_dr@hotmail.com>2026-06-24 12:22:40 -0400
committerGitHub <noreply@github.com>2026-06-24 16:22:40 +0000
commit4a875dca4170f8a21b3e043d1bfb3d10d90e5822 (patch)
treeb848c18616241b613a07192b59c055e7cdfd776a /StormLib/src
parent0d2346d322b00df45470338406ef290d210ac92e (diff)
fix(menu): guard backend name lookups against unknown backends (#6806)
GetAvailableAudioBackends()/GetAvailableWindowBackends() can report a backend that has no entry in the static name maps (e.g. a newly added or platform- specific backend), which made audioBackendsMap.at()/windowBackendsMap.at() throw std::out_of_range and crash. Look up with find() (single lookup) and skip backends that aren't named instead of dereferencing a missing key. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'StormLib/src')
0 files changed, 0 insertions, 0 deletions