Explorar o código

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

Cahyadi Ramadhan Togihon %!s(int64=11) %!d(string=hai) anos
pai
achega
4e7cf8fe47
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 }