Skip to content

Commit b3c8348

Browse files
committed
fix copy paste
1 parent 8c893a5 commit b3c8348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/object/collideshipweapon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static int ship_weapon_check_collision(object *ship_objp, object *weapon_objp, f
449449
// if the shield is down in the quadrant we still want the AI to record that the shield was hit here
450450
// so that the AI can put energy torwards repairing that shield segement (but put behind a flag)
451451
// --wookieejedi
452-
if (The_mission.ai_profile->flags[AI::Profile_Flags::Fix_AI_shield_management_bug] || true && SCP_vector_inbounds(ship_objp->shield_quadrant, quadrant_num)) {
452+
if (The_mission.ai_profile->flags[AI::Profile_Flags::Fix_AI_shield_management_bug] && SCP_vector_inbounds(ship_objp->shield_quadrant, quadrant_num)) {
453453
Ai_info[Ships[ship_objp->instance].ai_index].last_hit_quadrant = quadrant_num;
454454
}
455455
quadrant_num = -1;

0 commit comments

Comments
 (0)