From 327f9679f0f47bca96af2ef870ac5851bd6293ab Mon Sep 17 00:00:00 2001 From: Kolkka Date: Wed, 16 Mar 2016 22:46:36 -0600 Subject: Fixes HerculesWS/Hercules#1198 and fixes HerculesWS/Hercules#1194 introduced in pull request #1189 Changed other instances of MAX_WEAPON_TYPE to MAX_SINGLE_WEAPON_TYPE. --- src/map/pc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.h') diff --git a/src/map/pc.h b/src/map/pc.h index 0d2bca84d..5c5ec131d 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -657,7 +657,7 @@ END_ZEROED_BLOCK; #define pc_stop_attack(sd) (unit->stop_attack(&(sd)->bl)) //Weapon check considering dual wielding. -#define pc_check_weapontype(sd, type) ((type)&((sd)->status.weapon < MAX_WEAPON_TYPE? \ +#define pc_check_weapontype(sd, type) ((type)&((sd)->status.weapon < MAX_SINGLE_WEAPON_TYPE? \ 1<<(sd)->status.weapon:(1<<(sd)->weapontype1)|(1<<(sd)->weapontype2)|(1<<(sd)->status.weapon))) // clientside display macros (values to the left/right of the "+") -- cgit v1.2.3-60-g2f50