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.
This commit is contained in:
Kawe Mazidjatari 2024-06-11 16:42:59 +02:00
parent a3e021d637
commit 61856106f0

View File

@ -395,7 +395,7 @@ bool CPylon::GetEULA(MSEulaData_t& outData, string& outMessage) const
// check if the EULA response fields are valid. // check if the EULA response fields are valid.
if (!JSON_GetValue(data, "version", JSONFieldType_e::kSint32, version) || 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)) !JSON_GetValue(data, "contents", JSONFieldType_e::kString, contents))
{ {
outMessage = "schema is invalid"; outMessage = "schema is invalid";