瀏覽代碼

* Fixed Storage AddItem Bug (bugreport:8126, Hercules merge:24556fb)

Cahyadi Ramadhan Togihon 11 年之前
父節點
當前提交
4e7cf8fe47
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/map/storage.c

+ 2 - 0
src/map/storage.c

@@ -234,6 +234,8 @@ int storage_storageadd(struct map_session_data* sd, int index, int amount)
 
 	if( storage_additem(sd,&sd->status.inventory[index],amount) == 0 )
 		pc_delitem(sd,index,amount,0,4,LOG_TYPE_STORAGE);
+	else
+		clif_dropitem(sd,index,0);
 
 	return 1;
 }