Fix struct parsing using multiple methods to re-read a single member
This commit is contained in:
parent
012f2a213a
commit
56e4955c54
2 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,8 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
|
|||
The **"Breaking Changes"** listed below are changes that have been made in the decompilation projects (e.g. pokeemerald), which porymap requires in order to work properly. It also includes changes to the scripting API that may change the behavior of existing porymap scripts. If porymap is used with a project or API script that is not up-to-date with the breaking changes, then porymap will likely break or behave improperly.
|
||||
|
||||
## [Unreleased]
|
||||
Nothing, yet.
|
||||
### Fixed
|
||||
- Fix object event sprites not loading for some struct data formats.
|
||||
|
||||
## [5.4.0] - 2024-02-13
|
||||
### Added
|
||||
|
|
|
@ -568,7 +568,7 @@ QMap<QString, QHash<QString, QString>> ParseUtil::readCStructs(const QString &fi
|
|||
values.insert(key, value);
|
||||
} else {
|
||||
// For compatibility with structs that don't specify member names.
|
||||
if (memberMap.contains(i))
|
||||
if (memberMap.contains(i) && !values.contains(memberMap.value(i)))
|
||||
values.insert(memberMap.value(i), QString::fromStdString(v.string_value()));
|
||||
}
|
||||
i++;
|
||||
|
|
Loading…
Reference in a new issue