From 715ee56d9e0c73e1539de3f719f1d38d5bc3aa54 Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Sun, 26 Sep 2010 07:39:13 +0000 Subject: [PATCH] added more debug info (name of card with conflict ) for id conflicts. Don't have the name of the card it conflicts with however --- projects/mtg/src/MTGDeck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index 50685ff30..046807fc1 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -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);