Skip to content

Commit

Permalink
Follow up to 1e8c27c.
Browse files Browse the repository at this point in the history
Removed an unneccessary pointer. Thanks to @cydh
  • Loading branch information
Jittapan Pluemsumran committed Aug 15, 2016
1 parent 1e8c27c commit da21013
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/map/status.c
Expand Up @@ -3464,19 +3464,17 @@ int status_calc_pc_(struct map_session_data* sd, enum e_status_calc_opt opt)

if (sd->inventory_data[index]) {
int j;
struct item_data *itemdata;
struct s_random_opt_data *data;
for (j = 0; j < MAX_ITEM_RDM_OPT; j++) {
short opt_id = sd->status.inventory[index].option[j].id;
unsigned short nameid = sd->status.inventory[index].nameid;
if (!opt_id)
continue;
current_equip_opt_index = j;
itemdata = itemdb_exists(nameid);
data = itemdb_randomopt_exists(opt_id);
if (!data || !data->script)
continue;
if (!pc_has_permission(sd, PC_PERM_USE_ALL_EQUIPMENT) && itemdb_isNoEquip(itemdata, sd->bl.m))
if (!pc_has_permission(sd, PC_PERM_USE_ALL_EQUIPMENT) && itemdb_isNoEquip(sd->inventory_data[index], sd->bl.m))
continue;
if (i == EQI_HAND_L && sd->status.inventory[index].equip == EQP_HAND_L) { // Left hand status.
sd->state.lr_flag = 1;
Expand Down

0 comments on commit da21013

Please sign in to comment.