Selaa lähdekoodia

Follow-up 4e7cf8f

Cahyadi Ramadhan Togihon 11 vuotta sitten
vanhempi
commit
b85f469bd5
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      src/map/storage.c

+ 7 - 1
src/map/storage.c

@@ -234,8 +234,10 @@ 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
+	else {
 		clif_dropitem(sd,index,0);
+		return 0;
+	}
 
 	return 1;
 }
@@ -551,6 +553,10 @@ int storage_guild_storageadd(struct map_session_data* sd, int index, int amount)
 
 	if(guild_storage_additem(sd,stor,&sd->status.inventory[index],amount)==0)
 		pc_delitem(sd,index,amount,0,4,LOG_TYPE_GSTORAGE);
+	else {
+		clif_dropitem(sd,index,0);
+		return 0;
+	}
 
 	return 1;
 }