Jeck - Fix a crash bug.

This commit is contained in:
wagic.jeck
2010-02-02 19:39:30 +00:00
parent ce0380af60
commit b3da3f1843
+1
View File
@@ -271,6 +271,7 @@ void CardGui::alternateRender(MTGCard * card, const Pos& pos){
s += _(Subtypes::subtypesList->find(card->data->types[i])); s += _(Subtypes::subtypesList->find(card->data->types[i]));
s += " - "; s += " - ";
} }
if(card->data->types.size())
s += _(Subtypes::subtypesList->find(card->data->types[0])); s += _(Subtypes::subtypesList->find(card->data->types[0]));
font->DrawString(s.c_str(), x + (22 - BigWidth / 2)*pos.actZ, pos.actY + (49 - BigHeight / 2)*pos.actZ); font->DrawString(s.c_str(), x + (22 - BigWidth / 2)*pos.actZ, pos.actY + (49 - BigHeight / 2)*pos.actZ);
} }