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
@@ -147,7 +147,7 @@ public:
entry.char_id = atoi(row[0]);
entry.pet = atoi(row[1]);
entry.petname = row[2];
entry.petname = row[2] ? row[2] : "";
entry.petpower = atoi(row[3]);
entry.spell_id = atoi(row[4]);
entry.hp = atoi(row[5]);
@@ -285,7 +285,7 @@ public:
entry.char_id = atoi(row[0]);
entry.pet = atoi(row[1]);
entry.petname = row[2];
entry.petname = row[2] ? row[2] : "";
entry.petpower = atoi(row[3]);
entry.spell_id = atoi(row[4]);
entry.hp = atoi(row[5]);
@@ -317,7 +317,7 @@ public:
entry.char_id = atoi(row[0]);
entry.pet = atoi(row[1]);
entry.petname = row[2];
entry.petname = row[2] ? row[2] : "";
entry.petpower = atoi(row[3]);
entry.spell_id = atoi(row[4]);
entry.hp = atoi(row[5]);