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.
2 parents 2b2333f + a79dd70 commit ddef6eaCopy full SHA for ddef6ea
code/parse/sexp.cpp
@@ -11846,7 +11846,7 @@ void sexp_clear_goals(int n)
11846
if (ship_entry)
11847
{
11848
if (ship_entry->status != ShipStatus::PRESENT)
11849
- return; // ship not around anymore???? then forget it!
+ continue; // ship not around anymore???? then forget it!
11850
11851
ai_clear_ship_goals(&(Ai_info[ship_entry->shipp->ai_index]));
11852
continue;
@@ -11856,7 +11856,7 @@ void sexp_clear_goals(int n)
11856
if (wingp)
11857
11858
if (wingp->flags[Ship::Wing_Flags::Gone])
11859
- return; // wing not around anymore???? then forget it!
+ continue; // wing not around anymore???? then forget it!
11860
11861
ai_clear_wing_goals(wingp);
11862
}
0 commit comments