deckstats crash when "unlock cards" is used #668
This commit is contained in:
@@ -394,6 +394,7 @@ void StatsWrapper::updateStats(string filename, MTGAllCards *collection)
|
|||||||
|
|
||||||
void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
|
void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
|
||||||
{
|
{
|
||||||
|
if(!this) return;
|
||||||
if (!this->needUpdate || !myDeck) return;
|
if (!this->needUpdate || !myDeck) return;
|
||||||
|
|
||||||
this->needUpdate = false;
|
this->needUpdate = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user