From f448049b04518274ea439db1babdfc0a68847b16 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Mon, 25 May 2009 13:20:46 +0000 Subject: [PATCH] Erwan -fix a DOS/Unix issue in Deck names --- projects/mtg/src/MTGDeck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index 066d0199d..623602170 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -341,6 +341,7 @@ MTGDeck::MTGDeck(const char * config_file, TexturesCache * cache, MTGAllCards * if(file){ while(std::getline(file,s)){ if (!s.size()) continue; + if (s[s.size()-1] == '\r') s.erase(s.size()-1); //Handle DOS files if (s[0] == '#'){ size_t found = s.find("NAME:"); if ( found != string::npos){