summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetPathways.cpp
diff options
context:
space:
mode:
authorNicholas Estelami <NEstelami@users.noreply.github.com>2021-01-08 17:38:31 -0500
committerGitHub <noreply@github.com>2021-01-08 17:38:31 -0500
commitfd4d53a2684871a1ac28668515d025470a45ef7f (patch)
tree47ebf84c86c4f1b943b95029debf1d13759f456e /ZAPD/ZRoom/Commands/SetPathways.cpp
parent1bacd7fdc964ad9eec9d8b56373eb10e10723d2f (diff)
Fixed bug with declarations at 0x0000, and fixed improperly sized palettes. (#65)
* Fixed bug with extraction of ci4 textures * Made a bunch of declarations static * Removed manual writes to declarations dictionary from external classes. * Added a bunch of deconstructors, freed a bunch of stuff * Fixed bug with declarations at 0x0000, and fixed issue with palette sizing. * Fixed VS Lib and Include Dirs
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetPathways.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetPathways.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ZAPD/ZRoom/Commands/SetPathways.cpp b/ZAPD/ZRoom/Commands/SetPathways.cpp
index 0856730..a131ac1 100644
--- a/ZAPD/ZRoom/Commands/SetPathways.cpp
+++ b/ZAPD/ZRoom/Commands/SetPathways.cpp
@@ -22,6 +22,12 @@ SetPathways::SetPathways(ZRoom* nZRoom, std::vector<uint8_t> rawData, int rawDat
zRoom->parent->AddDeclarationPlaceholder(segmentOffset);
}
+SetPathways::~SetPathways()
+{
+ for (PathwayEntry* entry : pathways)
+ delete entry;
+}
+
void SetPathways::InitList(uint32_t address)
{
segmentOffset = address;