summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b3b7f42c6..2e1eab8ae 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -3772,7 +3772,7 @@ int atcommand_refine(
refine = 1;
count = 0;
- for (j = 0; j < 10; j++) {
+ for (j = 0; j < EQI_MAX-1; j++) {
if ((i = sd->equip_index[j]) < 0)
continue;
if(position && !(sd->status.inventory[i].equip & position))