fix missile 0 charges

This commit is contained in:
2025-05-11 11:24:19 -05:00
parent 53c83adcb2
commit d86364dd2e

View File

@@ -345,7 +345,7 @@ void put_item_screen(eItemWinMode screen_num) {
// Charges:
bool show_charges = item.max_charges > 0;
// Show charges for unidentified ammunition and lockpicks, but not other unidentified items
if(item.missile <= 0 && item.ability != eItemAbil::LOCKPICKS)
if(item.missile < 0 && item.ability != eItemAbil::LOCKPICKS)
show_charges &= item.ident;
// Don't show charges if it just shows a dialog
show_charges &= item.ability != eItemAbil::MESSAGE;