summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
authornotyourav <65437533+notyourav@users.noreply.github.com>2021-02-28 17:05:57 -0800
committerGitHub <noreply@github.com>2021-02-28 17:05:57 -0800
commit082b0c03a3e5c34a511069e159e9485ced292dbc (patch)
tree4284940e28d2c44940dee10bfa352fcd3bee5b1b /src/script.c
parent6596831a6bff9638c00baf7d81632d6ed1ed7e02 (diff)
parente3ee1058bb05edd47321a5554995a1bc78b42289 (diff)
Merge pull request #126 from notyourav/ent_enums
create object enum and update entity type struct
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.c b/src/script.c
index a7427cde..494e0ae5 100644
--- a/src/script.c
+++ b/src/script.c
@@ -389,7 +389,7 @@ void sub_0807DDE4(Entity* entity) {
loopVar = loopVar ^ switchVar;
switch (switchVar) {
case 2:
- if (entity->entityType.type == 7) {
+ if (entity->kind == 7) {
sub_0806ED78(entity);
} else {
sub_0800445C(entity);