This is definitely wrong - sd->equip_index can be - 1 and we can't use unsigned for it...

This commit is contained in:
pori 2014-01-01 23:39:53 +01:00
parent 0104aef878
commit 8eaac0a29c

2
src/map/pc.c Normal file → Executable file
View File

@ -8552,7 +8552,7 @@ static int pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
for( k = 0; k < EQI_MAX; k++ ) {
bool do_continue = false; //used to continue that specific loop with some check that also use some loop
uint16 index;
int16 index;
index = sd->equip_index[k];
if( index < 0 ) continue;
if( k == EQI_HAND_R && sd->equip_index[EQI_HAND_L] == index ) continue;