Skip to content

Commit

Permalink
Ignore more empty metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z committed Nov 19, 2024
1 parent 7cbf97d commit c08498f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kz/timer/kz_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,10 @@ void KZTimerService::InsertRecordToCache(f64 time, const KZCourse *course, Plugi
overall ? pb.overall.pbTime = time : pb.pro.pbTime = time;
KeyValues3 kv(KV3_TYPEEX_TABLE, KV3_SUBTYPE_UNSPECIFIED);
CUtlString error = "";
if (metadata.IsEmpty())
{
return;
}
LoadKV3FromJSON(&kv, &error, metadata.Get(), "");
if (!error.IsEmpty())
{
Expand Down

0 comments on commit c08498f

Please sign in to comment.