Fixed a few problems with SQL databases (#6242)
Fixes #6202
Follow up to 6b84115
Thanks to @bgamez23
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user