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/SetPathways.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/SetPathways.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetPathways.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/Commands/SetPathways.cpp b/ZAPD/ZRoom/Commands/SetPathways.cpp index 52d400a..967d10b 100644 --- a/ZAPD/ZRoom/Commands/SetPathways.cpp +++ b/ZAPD/ZRoom/Commands/SetPathways.cpp @@ -24,7 +24,7 @@ void SetPathways::ParseRawDataLate() { if (Globals::Instance->game == ZGame::MM_RETAIL) { - auto numPaths = zRoom->GetDeclarationSizeFromNeighbor(segmentOffset) / 8; + auto numPaths = zRoom->parent->GetDeclarationSizeFromNeighbor(segmentOffset) / 8; pathwayList.SetNumPaths(numPaths); } |
