Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Commit 2bfbc6f

Browse files
committed
Handled attribute value -1.
HeroDetailsValue::tThresholdAttribute was added in 1.2.0.46228 Has value -1 in ui.glo: ptContent[0].arHeroDetailsEntries[6].arEntries[4].arValues[5].tThresholdAttribute.eAttribute
1 parent d499eb3 commit 2bfbc6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ function readStructure(file, typeHashes, offset, field, fieldPath, results = { r
850850
type.fields.forEach(field => {
851851
ret[field.name] = readStructure.bind(this)(file, field.type, offset + field.offset, field, [...fieldPath, field.name], subresults);
852852

853-
if (ret.eAttribute !== null && ret.eAttribute !== undefined) {
853+
if (ret.eAttribute !== null && ret.eAttribute !== undefined && ret.eAttribute !== -1) {
854854
ret.__eAttribute_name__ = attributes[ret.eAttribute].name;
855855
}
856856
});

0 commit comments

Comments
 (0)