mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 13:38:21 +00:00
[Repositories] Fix datetime zero-value save behavior (#3976)
This commit is contained in:
@@ -124,7 +124,7 @@ public:
|
||||
GmIps e{};
|
||||
|
||||
e.name = row[0] ? row[0] : "";
|
||||
e.account_id = static_cast<int32_t>(atoi(row[1]));
|
||||
e.account_id = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.ip_address = row[2] ? row[2] : "";
|
||||
|
||||
return e;
|
||||
@@ -252,7 +252,7 @@ public:
|
||||
GmIps e{};
|
||||
|
||||
e.name = row[0] ? row[0] : "";
|
||||
e.account_id = static_cast<int32_t>(atoi(row[1]));
|
||||
e.account_id = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.ip_address = row[2] ? row[2] : "";
|
||||
|
||||
all_entries.push_back(e);
|
||||
@@ -279,7 +279,7 @@ public:
|
||||
GmIps e{};
|
||||
|
||||
e.name = row[0] ? row[0] : "";
|
||||
e.account_id = static_cast<int32_t>(atoi(row[1]));
|
||||
e.account_id = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.ip_address = row[2] ? row[2] : "";
|
||||
|
||||
all_entries.push_back(e);
|
||||
|
||||
Reference in New Issue
Block a user