UI: Skip game bg lookup without game.

This avoids trying to identify a file without a name.
This commit is contained in:
Unknown W. Brackets committed 2017-03-24 22:15:22 -07:00
1 parent 33db883024
commit 1fdf7c5373
6 files changed
+38 -36

No files matched your search

+1 -1
View File
@@ -744,7 +744,7 @@ void GameInfoCache::WaitUntilDone(GameInfo *info) {
// Runs on the main thread.
GameInfo *GameInfoCache::GetInfo(Draw::DrawContext *draw, const std::string &gamePath, int wantFlags) {
GameInfo *info = 0;
GameInfo *info = nullptr;
auto iter = info_.find(gamePath);
if (iter != info_.end()) {