mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-01 12:15:27 -06:00
Migration bugfixes
This commit is contained in:
parent
27ebd182e7
commit
aec981935c
@ -1251,11 +1251,12 @@ namespace np
|
|||||||
for (int i = 0; i < resp->rankarray_size(); i++)
|
for (int i = 0; i < resp->rankarray_size(); i++)
|
||||||
{
|
{
|
||||||
const auto& pb_rankdata = resp->rankarray(i);
|
const auto& pb_rankdata = resp->rankarray(i);
|
||||||
ensure(!pb_rankdata.npid().empty() && !pb_rankdata.onlinename().empty());
|
|
||||||
|
|
||||||
if (pb_rankdata.recorddate() == 0)
|
if (pb_rankdata.recorddate() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
ensure(!pb_rankdata.npid().empty() && !pb_rankdata.onlinename().empty());
|
||||||
|
|
||||||
num_scores_registered++;
|
num_scores_registered++;
|
||||||
|
|
||||||
if (tdata->player_rank_data)
|
if (tdata->player_rank_data)
|
||||||
|
|||||||
@ -136,12 +136,6 @@ public:
|
|||||||
if (error)
|
if (error)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
if (rawdata_vec.empty())
|
|
||||||
{
|
|
||||||
error = true;
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto msg = std::make_unique<T>();
|
auto msg = std::make_unique<T>();
|
||||||
if (!msg->ParseFromArray(rawdata_vec.data(), static_cast<int>(rawdata_vec.size())))
|
if (!msg->ParseFromArray(rawdata_vec.data(), static_cast<int>(rawdata_vec.size())))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user