Migration bugfixes

This commit is contained in:
RipleyTom
2026-01-24 13:45:49 +01:00
committed by Megamouse
parent 27ebd182e7
commit aec981935c
2 changed files with 2 additions and 7 deletions

View File

@@ -1251,11 +1251,12 @@ namespace np
for (int i = 0; i < resp->rankarray_size(); i++)
{
const auto& pb_rankdata = resp->rankarray(i);
ensure(!pb_rankdata.npid().empty() && !pb_rankdata.onlinename().empty());
if (pb_rankdata.recorddate() == 0)
continue;
ensure(!pb_rankdata.npid().empty() && !pb_rankdata.onlinename().empty());
num_scores_registered++;
if (tdata->player_rank_data)

View File

@@ -136,12 +136,6 @@ public:
if (error)
return nullptr;
if (rawdata_vec.empty())
{
error = true;
return nullptr;
}
auto msg = std::make_unique<T>();
if (!msg->ParseFromArray(rawdata_vec.data(), static_cast<int>(rawdata_vec.size())))
{