System: Fix crash when launching exe/psf

This commit is contained in:
Connor McLaughlin 2021-03-28 12:39:12 +10:00
parent a9c026f06a
commit dec2d48bfe

View file

@ -1963,7 +1963,7 @@ void UpdateRunningGame(const char* path, CDImage* image)
s_running_game_path = path;
g_host_interface->GetGameInfo(path, image, &s_running_game_code, &s_running_game_title);
if (image->HasSubImages() && g_settings.memory_card_use_playlist_title)
if (image && image->HasSubImages() && g_settings.memory_card_use_playlist_title)
{
std::string image_title(image->GetMetadata("title"));
if (!image_title.empty())