We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660f72d commit 2748cc6Copy full SHA for 2748cc6
code/ai/aicode.cpp
@@ -14487,6 +14487,10 @@ void ai_frame(int objnum)
14487
{
14488
// Cyborg - can you believe this was added in *2022*??
14489
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
+ }
14494
14495
ship *shipp = &Ships[Objects[objnum].instance];
14496
ai_info *aip = &Ai_info[shipp->ai_index];
0 commit comments