Correct json array indexes

This commit is contained in:
Federico Cecchetto committed 2021-06-18 22:23:37 +02:00
1 parent e493832128
commit e84cfe54a6
1 file changed
+2 -1
+2 -1
View File
@@ -49,7 +49,8 @@ namespace json
if (!string_indexed) if (!string_indexed)
{ {
obj.emplace_back(gsc_to_json(variable)); const auto index = (string_value - 0x800000) & 0xFFFFFF;
obj[index] = gsc_to_json(variable);
} }
else else
{ {