Skip to content

Commit 9212516

Browse files
committed
Fix melee weapon range display
Closes #90
1 parent b8319a3 commit 9212516

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/intgame.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7242,6 +7242,9 @@ void sub_555910(int64_t obj, char* buffer)
72427242

72437243
// RNG
72447244
min = obj_field_int32_get(obj, OBJ_F_WEAPON_RANGE);
7245+
if (min == 1) {
7246+
min = 0;
7247+
}
72457248
if (identified) {
72467249
adj = obj_field_int32_get(obj, OBJ_F_WEAPON_MAGIC_RANGE_ADJ);
72477250
} else {

0 commit comments

Comments
 (0)