From c0d3818fa0a3859d5f6cd923488ac3244d3c00d6 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 13 Jun 2017 18:24:42 +0200 Subject: Use ANGBAND_TERM_MAX instead of literal 8 (This won't cover nearly all cases, but it helps a little.) --- src/object1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object1.cc') diff --git a/src/object1.cc b/src/object1.cc index 34c22a4a..3fb2ef26 100644 --- a/src/object1.cc +++ b/src/object1.cc @@ -4367,7 +4367,7 @@ void toggle_inven_equip() int j; /* Scan windows */ - for (j = 0; j < 8; j++) + for (j = 0; j < ANGBAND_TERM_MAX; j++) { /* Unused */ if (!angband_term[j]) continue; @@ -4855,7 +4855,7 @@ static bool_ get_item_floor(int *cp, cptr pmt, cptr str, int mode, object_filter int ne = 0; /* Scan windows */ - for (j = 0; j < 8; j++) + for (j = 0; j < ANGBAND_TERM_MAX; j++) { /* Unused */ if (!angband_term[j]) continue; -- cgit v1.2.1