Merge pull request #20515 from hrydgard/more-misc-fixes

Additional fixes for 1.19.2
This commit is contained in:
Henrik Rydgård committed 2025-06-15 13:24:49 +02:00
1 parent 044ecb3609
commit c32af6c7f3
11 files changed
+42 -19

No files matched your search

+4 -2
View File
@@ -313,8 +313,10 @@ void ScreenManager::sendMessage(UIMessage message, const char *value) {
// NOTE: Changed this to send the message to all screens, instead of just the top one,
// to allow EmuScreen to receive messages from popup menus. Hope this didn't break anything..
for (auto &iter : stack_) {
iter.screen->sendMessage(message, value);
for (const auto &iter : stack_) {
if (iter.screen) {
iter.screen->sendMessage(message, value);
}
}
}