diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp index ede48baf1b..b5fe88b709 100644 --- a/Source/Core/Core/IOS/IOS.cpp +++ b/Source/Core/Core/IOS/IOS.cpp @@ -824,7 +824,8 @@ void Init() if (!s_ios) return; - auto device = static_cast(s_ios->GetDeviceByName("/dev/sdio/slot0").get()); + auto sdio_slot0 = s_ios->GetDeviceByName("/dev/sdio/slot0"); + auto device = static_cast(sdio_slot0.get()); if (device) device->EventNotify(); });