From 61856106f0ae71c635623d00836344bb52cd4d52 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:42:59 +0200 Subject: [PATCH] NetworkSystem: fix regression in eula schema During port to new performant JSON utils system in commit a5e05d3996ae95876fcac09affeaa043a768e749, the typo was made causing EULA not to display during tests. Fix field name typo. --- src/networksystem/pylon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networksystem/pylon.cpp b/src/networksystem/pylon.cpp index 9c669f09..0e16f2aa 100644 --- a/src/networksystem/pylon.cpp +++ b/src/networksystem/pylon.cpp @@ -395,7 +395,7 @@ bool CPylon::GetEULA(MSEulaData_t& outData, string& outMessage) const // check if the EULA response fields are valid. if (!JSON_GetValue(data, "version", JSONFieldType_e::kSint32, version) || - !JSON_GetValue(data, "language", JSONFieldType_e::kString, language) || + !JSON_GetValue(data, "lang", JSONFieldType_e::kString, language) || !JSON_GetValue(data, "contents", JSONFieldType_e::kString, contents)) { outMessage = "schema is invalid";