Skip to content

Commit 3e77e13

Browse files
authored
fix copy-paste error (#6878)
1 parent 2ce4bdd commit 3e77e13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/object/collideshipship.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ void collide_ship_ship_process(obj_pair * pair, const std::any& collision_data)
13711371
hud_shield_quadrant_hit(ship_ship_hit_info.heavy, quadrant_num);
13721372

13731373
// don't draw sparks (using sphere hitpos)
1374-
float damage_light = (100.0f * damage / heavy_obj->phys_info.mass);
1374+
float damage_light = (100.0f * damage / light_obj->phys_info.mass);
13751375
ship_apply_local_damage(ship_ship_hit_info.light, ship_ship_hit_info.heavy, &world_hit_pos, damage_light, heavy_shipp->collision_damage_type_idx,
13761376
MISS_SHIELDS, NO_SPARKS, -1, &ship_ship_hit_info.collision_normal);
13771377

0 commit comments

Comments
 (0)