浏览代码

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 4 年之前
父节点
当前提交
6d4aba7d1c
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 	else
 		get_amt = data->amount;
 		get_amt = data->amount;
 
 
+	tmp.amount = get_amt;
+
 	// Do loop for non-stackable item
 	// Do loop for non-stackable item
 	for (i = 0; i < data->amount; i += get_amt) {
 	for (i = 0; i < data->amount; i += get_amt) {
 		char flag = 0;
 		char flag = 0;