Explorar el Código

Fixes script command getgroupitem (#5747)

* Fixes #5727.
* Fixes items that get dropped on the floor from script command getgroupitem being 0.
Thanks to @eppc0330!
Aleos hace 4 años
padre
commit
6d4aba7d1c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/map/itemdb.cpp

+ 2 - 0
src/map/itemdb.cpp

@@ -1270,6 +1270,8 @@ static void itemdb_pc_get_itemgroup_sub(struct map_session_data *sd, bool identi
 	else
 		get_amt = data->amount;
 
+	tmp.amount = get_amt;
+
 	// Do loop for non-stackable item
 	for (i = 0; i < data->amount; i += get_amt) {
 		char flag = 0;