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){