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
@@ -208,7 +208,7 @@ public:
entry.heading = atof(row[6]);
entry.itemid = atoi(row[7]);
entry.charges = atoi(row[8]);
entry.objectname = row[9];
entry.objectname = row[9] ? row[9] : "";
entry.type = atoi(row[10]);
entry.icon = atoi(row[11]);
entry.unknown08 = atoi(row[12]);
@@ -224,7 +224,7 @@ public:
entry.size = atof(row[22]);
entry.tilt_x = atof(row[23]);
entry.tilt_y = atof(row[24]);
entry.display_name = row[25];
entry.display_name = row[25] ? row[25] : "";
return entry;
}
@@ -421,7 +421,7 @@ public:
entry.heading = atof(row[6]);
entry.itemid = atoi(row[7]);
entry.charges = atoi(row[8]);
entry.objectname = row[9];
entry.objectname = row[9] ? row[9] : "";
entry.type = atoi(row[10]);
entry.icon = atoi(row[11]);
entry.unknown08 = atoi(row[12]);
@@ -437,7 +437,7 @@ public:
entry.size = atof(row[22]);
entry.tilt_x = atof(row[23]);
entry.tilt_y = atof(row[24]);
entry.display_name = row[25];
entry.display_name = row[25] ? row[25] : "";
all_entries.push_back(entry);
}
@@ -471,7 +471,7 @@ public:
entry.heading = atof(row[6]);
entry.itemid = atoi(row[7]);
entry.charges = atoi(row[8]);
entry.objectname = row[9];
entry.objectname = row[9] ? row[9] : "";
entry.type = atoi(row[10]);
entry.icon = atoi(row[11]);
entry.unknown08 = atoi(row[12]);
@@ -487,7 +487,7 @@ public:
entry.size = atof(row[22]);
entry.tilt_x = atof(row[23]);
entry.tilt_y = atof(row[24]);
entry.display_name = row[25];
entry.display_name = row[25] ? row[25] : "";
all_entries.push_back(entry);
}