Don't crash if GameInfoCache is never inited.

This commit is contained in:
Unknown W. Brackets committed 2013-07-10 22:28:01 -07:00
1 parent 3022a026a1
commit 9f96ea80b1
1 file changed
+2 -1
+2 -1
View File
@@ -304,7 +304,8 @@ void GameInfoCache::Decimate() {
}
void GameInfoCache::Clear() {
gameInfoWQ_->Flush();
if (gameInfoWQ_)
gameInfoWQ_->Flush();
for (auto iter = info_.begin(); iter != info_.end(); iter++) {
lock_guard lock(iter->second->lock);
if (!iter->second->pic0TextureData.empty()) {