Fixed a few problems with SQL databases (#6242)

Fixes #6202
Follow up to 6b84115

Thanks to @bgamez23
This commit is contained in:
Lemongrass3110
2021-09-27 15:02:13 +02:00
committed by GitHub
parent 6672bfc490
commit 029d8dff9b
16 changed files with 181 additions and 144 deletions

View File

@@ -4935,8 +4935,10 @@ static bool mob_read_sqldb_sub(std::vector<std::string> str) {
int32 index = -1;
node["Id"] = std::stoul(str[++index]);
node["AegisName"] = str[++index];
node["Name"] = str[++index];
if (!str[++index].empty())
node["AegisName"] = str[index];
if (!str[++index].empty())
node["Name"] = str[index];
if (!str[++index].empty())
node["JapaneseName"] = str[index];
if (!str[++index].empty() && std::stoi(str[index]) > 1)