Fix crash for Deck Menu
Old save with stats should work 👍
This commit is contained in:
@@ -125,7 +125,7 @@ void DeckMenu::RenderDeckManaColors()
|
|||||||
if (deckManaColors.size() == 6)
|
if (deckManaColors.size() == 6)
|
||||||
{
|
{
|
||||||
// due to space constraints don't display icons for colorless mana.
|
// due to space constraints don't display icons for colorless mana.
|
||||||
for( int colorIdx = Constants::MTG_COLOR_GREEN; colorIdx < Constants::MTG_COLOR_LAND; ++colorIdx )
|
for( int colorIdx = Constants::MTG_COLOR_GREEN; colorIdx < Constants::MTG_COLOR_WASTE; ++colorIdx )
|
||||||
{
|
{
|
||||||
if ( (deckManaColors.at(colorIdx) == '1') != 0)
|
if ( (deckManaColors.at(colorIdx) == '1') != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ void StatsWrapper::updateStats(string filename, MTGAllCards *collection)
|
|||||||
|
|
||||||
void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
|
void StatsWrapper::updateStats(DeckDataWrapper *myDeck)
|
||||||
{
|
{
|
||||||
if(!this) return;
|
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