Fix for Issue 530: wither vs daily regimen = crash?. Turns out that it was a simple missing NULL check in the code that draws counter info on the large format cards.
This commit is contained in:
@@ -764,7 +764,7 @@ void CardGui::RenderCountersBig(const Pos& pos)
|
||||
{
|
||||
c = card->counters->counters[0];
|
||||
}
|
||||
if (c->nb > 0)
|
||||
if (c != NULL && c->nb > 0)
|
||||
{
|
||||
char buf[512];
|
||||
if (c->name != "")
|
||||
|
||||
Reference in New Issue
Block a user