Match ActorType::Unregister

This commit is contained in:
Mike
2024-05-04 10:57:15 -04:00
parent af20c468f1
commit ce86feb21d
2 changed files with 2 additions and 28 deletions
+2 -7
View File
@@ -1,7 +1,6 @@
#include "Actor/ActorType.hpp"
ActorTypeList sActorTypeList;
ActorTypeList sActorTypeList2;
// Kill duplicate dtors
KILL(_ZN9ActorTypeC2EjPFP5ActorvEPFivE)
@@ -39,13 +38,10 @@ ARM void ActorType::Register() {
*tail = this;
}
ARM void NONMATCH(ActorType::Unregister)() {
#ifndef NONMATCHING
#include "../asm/main/Actor/ActorType_Unregister.inc"
#else
ARM void ActorType::Unregister() {
ActorType *actorType;
ActorType **current = &sActorTypeList2.head;
ActorType **current = &sActorTypeList.head;
ActorType **previous = NULL;
for (actorType = sActorTypeList.head; actorType != NULL; actorType = actorType->next) {
@@ -57,7 +53,6 @@ ARM void NONMATCH(ActorType::Unregister)() {
if (previous != NULL) {
(*previous)->next = this->next;
}
#endif
}
ARM ActorType *ActorType::Find(ActorTypeId id) {