mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
[util] Fix some plist object parsing errors
Forgot to break after finding the field when parsing a dictionary object, and use the correct parser for array objects.
This commit is contained in:
parent
8290e3800f
commit
72f583f16f
1 changed files with 3 additions and 2 deletions
|
@ -1165,6 +1165,7 @@ PL_ParseDictionary (const plfield_t *fields, const plitem_t *dict, void *data,
|
|||
result = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!f->name) {
|
||||
|
@ -1193,8 +1194,8 @@ PL_ParseArray (const plfield_t *field, const plitem_t *array, void *data,
|
|||
pl_message (messages, array, "error: not an array object");
|
||||
return 0;
|
||||
}
|
||||
if (field->parser) {
|
||||
parser = field->parser;
|
||||
if (f.parser) {
|
||||
parser = f.parser;
|
||||
} else {
|
||||
parser = pl_default_parser;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue