mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Return blank string values for string entries that return back null
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user