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
+3 -3
View File
@@ -145,7 +145,7 @@ public:
if (results.RowCount() == 1) {
Pets entry{};
entry.type = row[0];
entry.type = row[0] ? row[0] : "";
entry.petpower = atoi(row[1]);
entry.npcID = atoi(row[2]);
entry.temp = atoi(row[3]);
@@ -283,7 +283,7 @@ public:
for (auto row = results.begin(); row != results.end(); ++row) {
Pets entry{};
entry.type = row[0];
entry.type = row[0] ? row[0] : "";
entry.petpower = atoi(row[1]);
entry.npcID = atoi(row[2]);
entry.temp = atoi(row[3]);
@@ -315,7 +315,7 @@ public:
for (auto row = results.begin(); row != results.end(); ++row) {
Pets entry{};
entry.type = row[0];
entry.type = row[0] ? row[0] : "";
entry.petpower = atoi(row[1]);
entry.npcID = atoi(row[2]);
entry.temp = atoi(row[3]);