Skip to content

Commit e9e7222

Browse files
Return here if not a ship
1 parent 2449dd6 commit e9e7222

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/ai/aicode.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16161,6 +16161,10 @@ void maybe_cheat_fire_synaptic(object *objp)
1616116161

1616216162
Assertion(objp->type == OBJ_SHIP, "This ai function requires a ship, but was called with a non-ship object type of %d. Please report!", objp->type);
1616316163

16164+
if (objp->type != OBJ_SHIP) {
16165+
return;
16166+
}
16167+
1616416168
shipp = &Ships[objp->instance];
1616516169

1616616170
if (!(strnicmp(shipp->ship_name, NOX("delta"), 5)))

0 commit comments

Comments
 (0)