Misc sanity checks

This commit is contained in:
Henrik Rydgård
2025-06-14 08:45:02 +02:00
parent aea6df0ca4
commit 70f1edb28f
8 changed files with 37 additions and 18 deletions
+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);
}
}
}