Skip to content

Commit

Permalink
Fixed a crash on Shop when buying a new booster.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitty85 committed Aug 11, 2023
1 parent fd68b1d commit ac19717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/mtg/src/CardGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,9 @@ void CardGui::RenderCountersBig(MTGCard * mtgcard, const Pos& pos, int drawMode)
if (!card)
return;

int ringTemptations = card->controller()->ringTemptations;
int ringTemptations = 0;
if(card->controller())
ringTemptations = card->controller()->ringTemptations;

if (!card->counters && !ringTemptations)
return;
Expand Down

0 comments on commit ac19717

Please sign in to comment.