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
@@ -174,8 +174,8 @@ public:
entry.char_id = atoi(row[8]);
entry.status = atoi(row[9]);
entry.item_id = atoi(row[10]);
entry.prefix = row[11];
entry.suffix = row[12];
entry.prefix = row[11] ? row[11] : "";
entry.suffix = row[12] ? row[12] : "";
entry.title_set = atoi(row[13]);
return entry;
@@ -339,8 +339,8 @@ public:
entry.char_id = atoi(row[8]);
entry.status = atoi(row[9]);
entry.item_id = atoi(row[10]);
entry.prefix = row[11];
entry.suffix = row[12];
entry.prefix = row[11] ? row[11] : "";
entry.suffix = row[12] ? row[12] : "";
entry.title_set = atoi(row[13]);
all_entries.push_back(entry);
@@ -377,8 +377,8 @@ public:
entry.char_id = atoi(row[8]);
entry.status = atoi(row[9]);
entry.item_id = atoi(row[10]);
entry.prefix = row[11];
entry.suffix = row[12];
entry.prefix = row[11] ? row[11] : "";
entry.suffix = row[12] ? row[12] : "";
entry.title_set = atoi(row[13]);
all_entries.push_back(entry);