Przeglądaj źródła

Resolves a map crash from an equipment lookup (#5935)

* Fixes #5933.
* Follow up to 82ff520.
Thanks to @mazvi!
Aleos 4 lat temu
rodzic
commit
202945ab37
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/map/status.cpp

+ 1 - 1
src/map/status.cpp

@@ -12637,7 +12637,7 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
 			break;
 	}
 
-	if (current_equip_combo_pos && tick == INFINITE_TICK) {
+	if (sd && current_equip_combo_pos > 0 && tick == INFINITE_TICK) {
 		ShowWarning("sc_start: Item combo of item #%u contains an INFINITE_TICK duration. Skipping bonus.\n", sd->inventory_data[pc_checkequip(sd, current_equip_combo_pos)]->nameid);
 		return 0;
 	}