diff options
author | shennetsind <ind@henn.et> | 2013-11-21 09:45:19 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-21 09:45:19 -0200 |
commit | 0ba8a5b1792225f736ef96603e2ceb40a90e38e4 (patch) | |
tree | f94c8fa5ff70411ef02e7abb814b80818b707550 /src/map | |
parent | 8ffe8285453b33d0f4266a16517ba3a6dc54e909 (diff) | |
download | hercules-0ba8a5b1792225f736ef96603e2ceb40a90e38e4.tar.gz hercules-0ba8a5b1792225f736ef96603e2ceb40a90e38e4.tar.bz2 hercules-0ba8a5b1792225f736ef96603e2ceb40a90e38e4.tar.xz hercules-0ba8a5b1792225f736ef96603e2ceb40a90e38e4.zip |
Fixed a somehow-cygwin-only warning 'array subscript is above array bounds'
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index dcb29701f..43d669a53 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10581,7 +10581,7 @@ struct skill_unit_group* skill_unitsetting(struct block_list *src, uint16 skill_ { struct skill_condition req = skill->get_requirement(sd,skill_id,skill_lv); ARR_FIND(0, MAX_SKILL_ITEM_REQUIRE, i, req.itemid[i] && (req.itemid[i] == ITEMID_TRAP || req.itemid[i] == ITEMID_TRAP_ALLOY)); - if( req.itemid[i] ) + if( i != MAX_SKILL_ITEM_REQUIRE && req.itemid[i] ) req_item = req.itemid[i]; if( map_flag_gvg2(src->m) || map->list[src->m].flag.battleground ) limit *= 4; // longer trap times in WOE [celest] |