mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/GameTables: Fixed parsing gt files (for real this time)
This commit is contained in:
@@ -68,6 +68,7 @@ inline uint32 LoadGameTable(std::vector<std::string>& errors, GameTable<T>& stor
|
||||
std::string line;
|
||||
while (std::getline(stream, line))
|
||||
{
|
||||
RemoveCRLF(line); // file extracted from client will always have CRLF line endings, on linux opening file in text mode will not work, manually erase \r
|
||||
std::vector<std::string_view> values = Trinity::Tokenize(line, '\t', true);
|
||||
if (values.empty())
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user