deckstats crash when "unlock cards" is used #668

This commit is contained in:
zethfoxster
2016-05-30 01:04:55 -04:00
parent 00adb20dc7
commit 8a6b4a49f5

View File

@@ -394,6 +394,7 @@ void StatsWrapper::updateStats(string filename, MTGAllCards *collection)
void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
{
if(!this) return;
if (!this->needUpdate || !myDeck) return;
this->needUpdate = false;