ui: Fix variable shadowing

This commit is contained in:
Matt Borgerson 2025-01-07 00:50:55 -07:00
parent 2558bc53a0
commit e93bb37177
1 changed files with 3 additions and 3 deletions

View File

@ -1096,11 +1096,11 @@ void MainMenuSnapshotsView::Draw()
XemuSnapshotData *data = &g_snapshot_mgr.m_extra_data[i];
int current_snapshot_binding = -1;
for (int i = 0; i < 4; ++i) {
if (g_strcmp0(*(g_snapshot_shortcut_index_key_map[i]),
for (int j = 0; j < 4; ++j) {
if (g_strcmp0(*(g_snapshot_shortcut_index_key_map[j]),
snapshot->name) == 0) {
assert(current_snapshot_binding == -1);
current_snapshot_binding = i;
current_snapshot_binding = j;
}
}