added more debug info (name of card with conflict ) for id conflicts. Don't have the name of the card it conflicts with however
This commit is contained in:
@@ -395,7 +395,7 @@ bool MTGAllCards::addCardToCollection(MTGCard * card, int setId){
|
||||
if (collection.find(newId) != collection.end()){
|
||||
#if defined (_DEBUG)
|
||||
char outBuf[4096];
|
||||
sprintf(outBuf,"warning, card id collision! : %i\n", newId);
|
||||
sprintf(outBuf,"warning, card id collision! : %i -> %s (%s) \n", newId, card->data->name.c_str(), setlist.getInfo( setId )->getName().c_str());
|
||||
OutputDebugString(outBuf);
|
||||
#endif
|
||||
SAFE_DELETE(card);
|
||||
|
||||
Reference in New Issue
Block a user