Jeck - Fix a crash bug.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user