Fix compilation on VS 2026

This commit is contained in:
Megamouse 2026-05-24 19:27:09 +02:00
parent 64ba0dd5e6
commit dd81c92a02

View File

@ -2724,7 +2724,7 @@ void Emulator::FixGuestTime()
// Mark a known savestate location and the one we try to boot (in case we boot a moved/copied savestate)
if (g_cfg.savestate.suspend_emu)
{
for (std::string old_path : std::initializer_list<std::string>{m_ar ? m_path_old : "", m_title_id.empty() ? "" : get_savestate_file(m_title_id, m_path_old, -1)})
for (const std::string& old_path : {m_ar ? m_path_old : ""s, m_title_id.empty() ? ""s : get_savestate_file(m_title_id, m_path_old, -1)})
{
if (old_path.empty())
{