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:
wrenczes@gmail.com
2010-12-04 09:09:24 +00:00
parent 793f6245f0
commit bb9ad159c3
+1 -1
View File
@@ -764,7 +764,7 @@ void CardGui::RenderCountersBig(const Pos& pos)
{ {
c = card->counters->counters[0]; c = card->counters->counters[0];
} }
if (c->nb > 0) if (c != NULL && c->nb > 0)
{ {
char buf[512]; char buf[512];
if (c->name != "") if (c->name != "")