summaryrefslogtreecommitdiff
path: root/src/object1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
committerBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
commitc0d3818fa0a3859d5f6cd923488ac3244d3c00d6 (patch)
treee4241de99a10fd68a138263f0a2b29ba52c7a42b /src/object1.cc
parentae90af873f4cd3450d5e04a65e84040b4ddad1bd (diff)
Use ANGBAND_TERM_MAX instead of literal 8
(This won't cover nearly all cases, but it helps a little.)
Diffstat (limited to 'src/object1.cc')
-rw-r--r--src/object1.cc4
1 files changed, 2 insertions, 2 deletions
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;