summaryrefslogtreecommitdiff
path: root/src/createObject.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2021-02-28 16:54:28 -0800
committertheo3 <arisstephenson2@gmail.com>2021-02-28 17:04:49 -0800
commite3ee1058bb05edd47321a5554995a1bc78b42289 (patch)
tree4284940e28d2c44940dee10bfa352fcd3bee5b1b /src/createObject.c
parent6596831a6bff9638c00baf7d81632d6ed1ed7e02 (diff)
create object enum and update entity type struct
Diffstat (limited to 'src/createObject.c')
-rw-r--r--src/createObject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/createObject.c b/src/createObject.c
index ad852900..62c67062 100644
--- a/src/createObject.c
+++ b/src/createObject.c
@@ -10,10 +10,10 @@ Entity* CreateObject(u32 subtype, u32 form, u32 parameter) {
ent = GetEmptyEntity();
if (ent != NULL) {
- ent->entityType.type = 6;
- ent->entityType.subtype = subtype;
- ent->entityType.form = form;
- ent->entityType.parameter = parameter;
+ ent->kind = 6;
+ ent->id = subtype;
+ ent->type = form;
+ ent->type2 = parameter;
AppendEntityToList(ent, 6);
}
return ent;