Core/GameTables: Fixed parsing gt files (for real this time)

This commit is contained in:
Shauren
2023-05-14 00:55:03 +02:00
parent 83bc908531
commit 8d0620eb05

View File

@@ -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;