From f0fa9794bcdde0b1402bb7a7256265f59bbd7313 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 6 Jul 2006 18:47:11 +0000 Subject: - Added EQP_/EQI_ constants in pc.h to identify equip position and equip indexes, makes equipping related code much easier to read. - Also cleaned up pc_equipitem. When dual wielding or equipping accessories, if the client actually specifies one of the two positions, it will be taken into account. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/atcommand.c') 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)) -- cgit v1.2.3-60-g2f50