Przeglądaj źródła

* Fixed Celest's typo making all vended items cost 0 zeny [Codemaster] [SVN 919]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@919 54d463be-8e91-2dee-dedb-b68131a5f0ec
codemaster 20 lat temu
rodzic
commit
7c89ed88b3
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      Changelog.txt
  2. 1 1
      src/map/vending.c

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Date	Added
 01/05
+	* Fixed Celest's typo making all vended items cost 0 zeny [Codemaster] [SVN 919]
         * If a vending item was priced at 0 it'll be auto changed to 1million [celest]
         * Fixed TXT logging - log_athena.conf reading was kind of messed up [celest]
         * Added a simplified version of Qamera's OnConnect: OnDisconnect: OnDeath: 

+ 1 - 1
src/map/vending.c

@@ -147,7 +147,7 @@ void vending_openvending(struct map_session_data *sd,int len,char *message,int f
 			sd->vending[i].value = *(int*)(p+4+8*i);
 			if(sd->vending[i].value > battle_config.vending_max_value)
 				sd->vending[i].value=battle_config.vending_max_value;
-			else if(sd->vending[i].value = 0)
+			else if(sd->vending[i].value == 0)
 				sd->vending[i].value = 1000000;	// auto set to 1 million [celest]
 			// カート内のアイテム数と販売するアイテム数に相違があったら中止
 			if(pc_cartitem_amount(sd, sd->vending[i].index, sd->vending[i].amount) < 0 || sd->vending[i].value < 0) { // fixes by Valaris and fritz