diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2023-05-30 22:07:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 22:07:11 -0400 |
| commit | bd87285d719e738a8baee8f11d4d6ffce0ab24a0 (patch) | |
| tree | 1e4956187985e860261c364eca86d9bd0710e19c /ZAPD/ZRoom/Commands/SetExitList.cpp | |
| parent | 55bb75eaa6ebf95858931e1557ed90105a150d80 (diff) | |
Some cleanup and refactoring (#295)
* Cleaned up Main and improved documentation
* Moved ZRoom::GetDeclarationSizeFromNeighbor into ZFile
* Fixed compile issue
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetExitList.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetExitList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/Commands/SetExitList.cpp b/ZAPD/ZRoom/Commands/SetExitList.cpp index 80ccc6b..78bbaa8 100644 --- a/ZAPD/ZRoom/Commands/SetExitList.cpp +++ b/ZAPD/ZRoom/Commands/SetExitList.cpp @@ -24,7 +24,7 @@ void SetExitList::DeclareReferences([[maybe_unused]] const std::string& prefix) void SetExitList::ParseRawDataLate() { // Parse Entrances and Generate Declaration - uint32_t numEntrances = zRoom->GetDeclarationSizeFromNeighbor(segmentOffset) / 2; + uint32_t numEntrances = zRoom->parent->GetDeclarationSizeFromNeighbor(segmentOffset) / 2; uint32_t currentPtr = segmentOffset; exits.reserve(numEntrances); |
