Skip to content

Commit 2748cc6

Browse files
Return here if not a ship in release
1 parent 660f72d commit 2748cc6

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
@@ -14487,6 +14487,10 @@ void ai_frame(int objnum)
1448714487
{
1448814488
// Cyborg - can you believe this was added in *2022*??
1448914489
Assertion (Objects[objnum].type == OBJ_SHIP, "Ai_frame was called for a non-ship of type %d. Please report!", Objects[objnum].type);
14490+
14491+
if (Objects[objnum].type != OBJ_SHIP){
14492+
return;
14493+
}
1449014494

1449114495
ship *shipp = &Ships[Objects[objnum].instance];
1449214496
ai_info *aip = &Ai_info[shipp->ai_index];

0 commit comments

Comments
 (0)