Skip to content

Commit 65941e2

Browse files
committed
forgot to specify that 0.0f is indeed a float
1 parent 538adf1 commit 65941e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/ship/ship.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17907,7 +17907,7 @@ float ArmorType::GetDamage(float damage_applied, int in_damage_type_idx, float d
1790717907

1790817908
// Face: negative damages should not heal you!!!
1790917909
if (damage_applied < 0.0f)
17910-
damage_applied = 0;
17910+
damage_applied = 0.0f;
1791117911

1791217912
return damage_applied;
1791317913
}

0 commit comments

Comments
 (0)