From bb9ad159c342219e4d0e3a379b6f5f64a8474e72 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Sat, 4 Dec 2010 09:09:24 +0000 Subject: [PATCH] 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. --- projects/mtg/src/CardGui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/CardGui.cpp b/projects/mtg/src/CardGui.cpp index 995eff10d..6d8a7b98b 100644 --- a/projects/mtg/src/CardGui.cpp +++ b/projects/mtg/src/CardGui.cpp @@ -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 != "")