Erwan
- Attempt at solving issue 247 (missing background image for trophy room). I think I attempted that a while ago and it caused some crashes, so let's revert this change if this happens
This commit is contained in:
@@ -556,14 +556,17 @@ MTGDeck::MTGDeck(const char * config_file, MTGAllCards * _allcards, int meta_onl
|
||||
size_t found = s.find(" *");
|
||||
if (found != string::npos){
|
||||
nb = atoi(s.substr(found+2).c_str());
|
||||
s=s.substr(0,found);
|
||||
OutputDebugString(s.c_str());
|
||||
s = s.substr(0,found);
|
||||
}
|
||||
MTGCard * card = database->getCardByName(s);
|
||||
if (card){
|
||||
for (int i = 0; i < nb; i++){
|
||||
add(card);
|
||||
}
|
||||
} else {
|
||||
OutputDebugString("could not find Card matching name:");
|
||||
OutputDebugString(s.c_str());
|
||||
OutputDebugString("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user