summaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2024-10-19 13:20:17 +0200
committerGitHub <noreply@github.com>2024-10-19 13:20:17 +0200
commitffdfd609fb9bc8f968ddc6f187da1d50731cbf69 (patch)
treed13b6142759bc78d50a491d87de56e7e9213c9a4 /src/Main
parent32c4725191813003e34a263a6d1530f806d1ac7c (diff)
parent10c2e3413b3244c5f2adffac1140f37920f13988 (diff)
Merge pull request #51 from AetiasHax/dsd
`dsd` integration
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/Actor/ActorType.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Main/Actor/ActorType.cpp b/src/Main/Actor/ActorType.cpp
index 39579811..ec5f564f 100644
--- a/src/Main/Actor/ActorType.cpp
+++ b/src/Main/Actor/ActorType.cpp
@@ -2,16 +2,12 @@
ActorTypeList sActorTypeList;
-// Kill duplicate dtors
-KILL(_ZN9ActorTypeC2EjPFP5ActorvEPFivE)
-KILL(_ZN9ActorTypeD2Ev)
-
ARM ActorType::ActorType(ActorTypeId id, ActorCreateFunc create, unk32 (*unk_08)()) {
- this->id = id;
+ this->id = id;
this->create = create;
this->unk_08 = unk_08;
this->unk_0c = 0;
- this->next = NULL;
+ this->next = NULL;
this->Register();
sActorTypeList.tail = this;
}
@@ -41,13 +37,13 @@ ARM void ActorType::Register() {
ARM void ActorType::Unregister() {
ActorType *actorType;
- ActorType **current = &sActorTypeList.head;
+ ActorType **current = &sActorTypeList.head;
ActorType **previous = NULL;
for (actorType = sActorTypeList.head; actorType != NULL; actorType = actorType->next) {
if (actorType == this) break;
previous = current;
- current = &actorType->next;
+ current = &actorType->next;
}
if (previous != NULL) {