- Fix a bug where JFileSystem would return duplicate results in function scanfolder (can lead to "card id collision" in the previous builds)

This commit is contained in:
wagic.the.homebrew
2011-08-21 12:53:57 +00:00
parent 87d60cd79e
commit cb0f2b373f
3 changed files with 34 additions and 16 deletions

View File

@@ -329,8 +329,8 @@ int MTGAllCards::load(const char * config_file, const char * set_name, int autol
if (!std::getline(stream, s)) return total_cards;
lineNumber++;
if (!s.size()) continue;
if (s[s.size() - 1] == '\r') s.erase(s.size() - 1); // Handle DOS files
if (!s.size()) continue;
switch (conf_read_mode)
{
case MTGAllCards::READ_ANYTHING: