Jeck - Fix for issue 320, also fix for countByName.

This commit is contained in:
wagic.jeck
2010-02-10 14:46:10 +00:00
parent 9806edc6d0
commit e59aca67b7
4 changed files with 22 additions and 10 deletions

View File

@@ -327,7 +327,7 @@ void GameStateDeckViewer::Update(float dt)
{
MTGCard * card = cardIndex[2];
if (card && displayed_deck->count(card)){
int price = pricelist->getSellPrice(card->getMTGId());
price = pricelist->getSellPrice(card->getMTGId());
sprintf(buffer,"%s : %i %s",_(card->data->getName()).c_str(),price,_("credits").c_str());
sellMenu = NEW SimpleMenu(2,this,Constants::MAIN_FONT,SCREEN_WIDTH-300,SCREEN_HEIGHT/2,buffer);
sellMenu->Add(20,"Yes");