From 6315fea675deb209ebeae75dd032d2bbe01be083 Mon Sep 17 00:00:00 2001 From: louist103 Date: Tue, 25 Oct 2022 11:00:27 -0400 Subject: Fix crash from destructor. --- ZAPD/ZRoom/Commands/SetActorList.cpp | 6 ------ ZAPD/ZRoom/Commands/SetActorList.h | 1 - 2 files changed, 7 deletions(-) diff --git a/ZAPD/ZRoom/Commands/SetActorList.cpp b/ZAPD/ZRoom/Commands/SetActorList.cpp index b3c186f..4d16f93 100644 --- a/ZAPD/ZRoom/Commands/SetActorList.cpp +++ b/ZAPD/ZRoom/Commands/SetActorList.cpp @@ -11,12 +11,6 @@ SetActorList::SetActorList(ZFile* nParent) : ZRoomCommand(nParent) { } -SetActorList::~SetActorList() -{ - if (actorList != nullptr) - delete actorList; -} - void SetActorList::ParseRawData() { ZRoomCommand::ParseRawData(); diff --git a/ZAPD/ZRoom/Commands/SetActorList.h b/ZAPD/ZRoom/Commands/SetActorList.h index f3eed93..4d21616 100644 --- a/ZAPD/ZRoom/Commands/SetActorList.h +++ b/ZAPD/ZRoom/Commands/SetActorList.h @@ -10,7 +10,6 @@ public: ZActorList* actorList = nullptr; SetActorList(ZFile* nParent); - ~SetActorList(); void ParseRawData() override; void DeclareReferences(const std::string& prefix) override; -- cgit v1.2.3