mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-06 04:06:38 +00:00
[Repositories] Fix datetime zero-value save behavior (#3976)
This commit is contained in:
@@ -198,12 +198,12 @@ public:
|
||||
e.id = row[0] ? static_cast<uint32_t>(strtoul(row[0], nullptr, 10)) : 0;
|
||||
e.name = row[1] ? row[1] : "";
|
||||
e.parent_list = row[2] ? static_cast<uint32_t>(strtoul(row[2], nullptr, 10)) : 0;
|
||||
e.attack_proc = static_cast<int16_t>(atoi(row[3]));
|
||||
e.proc_chance = static_cast<int8_t>(atoi(row[4]));
|
||||
e.range_proc = static_cast<int16_t>(atoi(row[5]));
|
||||
e.rproc_chance = static_cast<int16_t>(atoi(row[6]));
|
||||
e.defensive_proc = static_cast<int16_t>(atoi(row[7]));
|
||||
e.dproc_chance = static_cast<int16_t>(atoi(row[8]));
|
||||
e.attack_proc = row[3] ? static_cast<int16_t>(atoi(row[3])) : -1;
|
||||
e.proc_chance = row[4] ? static_cast<int8_t>(atoi(row[4])) : 3;
|
||||
e.range_proc = row[5] ? static_cast<int16_t>(atoi(row[5])) : -1;
|
||||
e.rproc_chance = row[6] ? static_cast<int16_t>(atoi(row[6])) : 0;
|
||||
e.defensive_proc = row[7] ? static_cast<int16_t>(atoi(row[7])) : -1;
|
||||
e.dproc_chance = row[8] ? static_cast<int16_t>(atoi(row[8])) : 0;
|
||||
e.fail_recast = row[9] ? static_cast<uint32_t>(strtoul(row[9], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_min = row[10] ? static_cast<uint32_t>(strtoul(row[10], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_max = row[11] ? static_cast<uint32_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
@@ -397,12 +397,12 @@ public:
|
||||
e.id = row[0] ? static_cast<uint32_t>(strtoul(row[0], nullptr, 10)) : 0;
|
||||
e.name = row[1] ? row[1] : "";
|
||||
e.parent_list = row[2] ? static_cast<uint32_t>(strtoul(row[2], nullptr, 10)) : 0;
|
||||
e.attack_proc = static_cast<int16_t>(atoi(row[3]));
|
||||
e.proc_chance = static_cast<int8_t>(atoi(row[4]));
|
||||
e.range_proc = static_cast<int16_t>(atoi(row[5]));
|
||||
e.rproc_chance = static_cast<int16_t>(atoi(row[6]));
|
||||
e.defensive_proc = static_cast<int16_t>(atoi(row[7]));
|
||||
e.dproc_chance = static_cast<int16_t>(atoi(row[8]));
|
||||
e.attack_proc = row[3] ? static_cast<int16_t>(atoi(row[3])) : -1;
|
||||
e.proc_chance = row[4] ? static_cast<int8_t>(atoi(row[4])) : 3;
|
||||
e.range_proc = row[5] ? static_cast<int16_t>(atoi(row[5])) : -1;
|
||||
e.rproc_chance = row[6] ? static_cast<int16_t>(atoi(row[6])) : 0;
|
||||
e.defensive_proc = row[7] ? static_cast<int16_t>(atoi(row[7])) : -1;
|
||||
e.dproc_chance = row[8] ? static_cast<int16_t>(atoi(row[8])) : 0;
|
||||
e.fail_recast = row[9] ? static_cast<uint32_t>(strtoul(row[9], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_min = row[10] ? static_cast<uint32_t>(strtoul(row[10], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_max = row[11] ? static_cast<uint32_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
@@ -442,12 +442,12 @@ public:
|
||||
e.id = row[0] ? static_cast<uint32_t>(strtoul(row[0], nullptr, 10)) : 0;
|
||||
e.name = row[1] ? row[1] : "";
|
||||
e.parent_list = row[2] ? static_cast<uint32_t>(strtoul(row[2], nullptr, 10)) : 0;
|
||||
e.attack_proc = static_cast<int16_t>(atoi(row[3]));
|
||||
e.proc_chance = static_cast<int8_t>(atoi(row[4]));
|
||||
e.range_proc = static_cast<int16_t>(atoi(row[5]));
|
||||
e.rproc_chance = static_cast<int16_t>(atoi(row[6]));
|
||||
e.defensive_proc = static_cast<int16_t>(atoi(row[7]));
|
||||
e.dproc_chance = static_cast<int16_t>(atoi(row[8]));
|
||||
e.attack_proc = row[3] ? static_cast<int16_t>(atoi(row[3])) : -1;
|
||||
e.proc_chance = row[4] ? static_cast<int8_t>(atoi(row[4])) : 3;
|
||||
e.range_proc = row[5] ? static_cast<int16_t>(atoi(row[5])) : -1;
|
||||
e.rproc_chance = row[6] ? static_cast<int16_t>(atoi(row[6])) : 0;
|
||||
e.defensive_proc = row[7] ? static_cast<int16_t>(atoi(row[7])) : -1;
|
||||
e.dproc_chance = row[8] ? static_cast<int16_t>(atoi(row[8])) : 0;
|
||||
e.fail_recast = row[9] ? static_cast<uint32_t>(strtoul(row[9], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_min = row[10] ? static_cast<uint32_t>(strtoul(row[10], nullptr, 10)) : 0;
|
||||
e.engaged_no_sp_recast_max = row[11] ? static_cast<uint32_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
|
||||
Reference in New Issue
Block a user