use object enum in object creation

This commit is contained in:
Henny022p
2021-05-02 02:27:18 +02:00
parent 0cfa5a9a06
commit f477e63fa4
36 changed files with 98 additions and 65 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
#include "global.h"
#include "audio.h"
#include "entity.h"
#include "functions.h"
#include "coord.h"
#include "random.h"
#include "object.h"
#include "structures.h"
#include "functions.h"
static void sub_0808F2B0(Entity*);
void sub_0808F14C(Entity*);
@@ -32,7 +33,7 @@ void sub_0808F0D0(Entity* this) {
Entity* ent;
u32 uVar3;
ent = CreateObjectWithParent(this, 0x49, 2, 0);
ent = CreateObjectWithParent(this, OBJECT_49, 2, 0);
this->attachedEntity = ent;
if (ent == NULL) {
DeleteThisEntity();