Return blank string values for string entries that return back null

This commit is contained in:
Akkadius
2020-04-04 04:48:46 -05:00
parent 15c9b64120
commit fe7e850a04
97 changed files with 788 additions and 790 deletions
+6 -6
View File
@@ -149,8 +149,8 @@ public:
Lfguild entry{};
entry.type = atoi(row[0]);
entry.name = row[1];
entry.comment = row[2];
entry.name = row[1] ? row[1] : "";
entry.comment = row[2] ? row[2] : "";
entry.fromlevel = atoi(row[3]);
entry.tolevel = atoi(row[4]);
entry.classes = atoi(row[5]);
@@ -291,8 +291,8 @@ public:
Lfguild entry{};
entry.type = atoi(row[0]);
entry.name = row[1];
entry.comment = row[2];
entry.name = row[1] ? row[1] : "";
entry.comment = row[2] ? row[2] : "";
entry.fromlevel = atoi(row[3]);
entry.tolevel = atoi(row[4]);
entry.classes = atoi(row[5]);
@@ -324,8 +324,8 @@ public:
Lfguild entry{};
entry.type = atoi(row[0]);
entry.name = row[1];
entry.comment = row[2];
entry.name = row[1] ? row[1] : "";
entry.comment = row[2] ? row[2] : "";
entry.fromlevel = atoi(row[3]);
entry.tolevel = atoi(row[4]);
entry.classes = atoi(row[5]);