Skip to content

Commit 2449dd6

Browse files
Equals is ok here
1 parent 2748cc6 commit 2449dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/ai/aicode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15113,7 +15113,7 @@ void ai_do_default_behavior(object *obj)
1511315113
{
1511415114
Assertion(obj != nullptr, "Ai_do_default_behavior() was given a bad information. Specifically obj is a nullptr. This is a coder error, please report!");
1511515115
Assertion((obj->type == OBJ_SHIP) && (obj->instance > -1) && (obj->instance < MAX_SHIPS), "This function that requires an object to be a ship was passed an invalid ship. Please report\n\nObject type: %d\nInstance #: %d", obj->type, obj->instance);
15116-
Assertion(Ships[obj->instance].ai_index > 0, "A ship has been found to have an invalid ai_index of %d. This should have been assigned and is coder mistake, please report!", Ships[obj->instance].ai_index);
15116+
Assertion(Ships[obj->instance].ai_index >= 0, "A ship has been found to have an invalid ai_index of %d. This should have been assigned and is coder mistake, please report!", Ships[obj->instance].ai_index);
1511715117

1511815118
ai_info *aip = &Ai_info[Ships[obj->instance].ai_index];
1511915119
ship_info* sip = &Ship_info[Ships[obj->instance].ship_info_index];

0 commit comments

Comments
 (0)