diff --git a/shared/Types/BPList.hpp b/shared/Types/BPList.hpp index b2c57a6..8740f2f 100644 --- a/shared/Types/BPList.hpp +++ b/shared/Types/BPList.hpp @@ -22,6 +22,8 @@ namespace PlaylistCore { SERIALIZE_ACTION(id_hash, if (!self->LevelID_Opt) jsonObject.AddMember("levelid", self->LevelID, allocator); + else + jsonObject["levelid"].SetString(self->LevelID, allocator); ) public: std::string LevelID;