From 6bea2da34d19e9c6d6d1e9d2af2a36d772c129ba Mon Sep 17 00:00:00 2001 From: Aleos Date: Sun, 13 Jan 2019 19:29:18 -0500 Subject: [PATCH] Corrected Card/Enchant Combos (#3856) * Fixes #3644. * Corrected the loop that counts card/enchant combos at login being limited to the number of slots on the main item instead of MAX_SLOTS. Thanks to @Badarosk0! --- src/map/pc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 4fdf07a108..a43eac8ac3 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -9771,7 +9771,7 @@ int pc_load_combo(struct map_session_data *sd) { if(!itemdb_isspecial(sd->inventory.u.items_inventory[idx].card[0])) { struct item_data *data; int j; - for( j = 0; j < id->slot; j++ ) { + for( j = 0; j < MAX_SLOTS; j++ ) { if (!sd->inventory.u.items_inventory[idx].card[j]) continue; if ( ( data = itemdb_exists(sd->inventory.u.items_inventory[idx].card[j]) ) != NULL ) {