Add a comment. See issue #12365

This commit is contained in:
Henrik Rydgård 2019-09-27 23:34:36 +02:00
parent 9c4649d3ac
commit 701d740207

View File

@ -288,6 +288,7 @@ int PlayBackgroundAudio() {
if (!g_gameInfoCache)
return 0; // race condition?
// This is very unsafe! TODO: Get rid of this somehow or make threadsafe!
std::shared_ptr<GameInfo> gameInfo = g_gameInfoCache->GetInfo(NULL, bgGamePath, GAMEINFO_WANTSND);
if (!gameInfo)
return 0;