summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
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);