diff options
Diffstat (limited to 'ZAPD/ZPath.cpp')
| -rw-r--r-- | ZAPD/ZPath.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ZAPD/ZPath.cpp b/ZAPD/ZPath.cpp index 97bb733..b57b3cc 100644 --- a/ZAPD/ZPath.cpp +++ b/ZAPD/ZPath.cpp @@ -17,8 +17,10 @@ void ZPath::ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex) { ZResource::ExtractFromXML(reader, nRawDataIndex); - parent->AddDeclarationArray(rawDataIndex, DeclarationAlignment::Align4, pathways.size() * 8, - GetSourceTypeName(), name, pathways.size(), ""); + Declaration* decl = + parent->AddDeclarationArray(rawDataIndex, DeclarationAlignment::Align4, pathways.size() * 8, + GetSourceTypeName(), name, pathways.size(), ""); + decl->staticConf = staticConf; } void ZPath::ParseXML(tinyxml2::XMLElement* reader) @@ -86,10 +88,12 @@ std::string ZPath::GetSourceOutputCode([[maybe_unused]] const std::string& prefi Declaration* decl = parent->GetDeclaration(rawDataIndex); if (decl == nullptr || decl->isPlaceholder) - parent->AddDeclarationArray(rawDataIndex, DeclarationAlignment::Align4, pathways.size() * 8, - GetSourceTypeName(), name, pathways.size(), declaration); + decl = parent->AddDeclarationArray(rawDataIndex, DeclarationAlignment::Align4, + pathways.size() * 8, GetSourceTypeName(), name, + pathways.size(), declaration); else decl->text = declaration; + decl->staticConf = staticConf; return ""; } |
