mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-21 05:15:44 +00:00
Correct json array indexes
This commit is contained in:
parent
e493832128
commit
e84cfe54a6
@ -49,9 +49,10 @@ 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
|
||||||
{
|
{
|
||||||
obj.emplace(str, gsc_to_json(variable));
|
obj.emplace(str, gsc_to_json(variable));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user