Skip to content

Commit e0d2d76

Browse files
Add an else unreachable.
1 parent 09b35ed commit e0d2d76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/ai/aicode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10029,6 +10029,8 @@ void guard_object_was_hit(object *guard_objp, object *hitter_objp)
1002910029
aip->active_goal = AI_ACTIVE_GOAL_DYNAMIC;
1003010030
}
1003110031
}
10032+
} else {
10033+
UNREACHABLE("The AI previously had a guard goal to guard something besides a ship, specifically an object of type %d. As we understand it, this should not happen. Please report!", Objects[aip->target_objnum].type);
1003210034
}
1003310035
}
1003410036
}

0 commit comments

Comments
 (0)