- fixed some errors with parsing globals.json. It looks like this file is being processed correctly now.
This commit is contained in:
parent
d9dbf26f63
commit
c22e8c50af
4 changed files with 39 additions and 35 deletions
|
|
@ -51,7 +51,6 @@ struct FJSONObject
|
|||
else if (v->IsArray())
|
||||
{
|
||||
mIndex = 0;
|
||||
mIterator = v->MemberEnd();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -717,6 +716,7 @@ unsigned FSerializer::GetSize(const char *group)
|
|||
const char *FSerializer::GetKey()
|
||||
{
|
||||
if (isWriting()) return nullptr; // we do not know this when writing.
|
||||
if (!r->mObjects.Last().mObject->IsObject()) return nullptr; // non-objects do not have keys.
|
||||
auto &it = r->mObjects.Last().mIterator;
|
||||
if (it == r->mObjects.Last().mObject->MemberEnd()) return nullptr;
|
||||
return it->name.GetString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue