Ver código fonte

- Fixed a small typo in my code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7649 54d463be-8e91-2dee-dedb-b68131a5f0ec
Zido 19 anos atrás
pai
commit
65d21c1011
2 arquivos alterados com 3 adições e 2 exclusões
  1. 1 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/pc.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/07/12
+	* Fixed a small typo in my code [Zido]
 	* Added negative value in bonus exploit fix for more stat bonuses [Zido]
 	* Fixed exploit in pc_bonus there are no checks that check that the value being
 	  added onto a status don't make it go below zero, which means if you have a mineral

+ 2 - 2
src/map/pc.c

@@ -1271,7 +1271,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
 				status->rhw.atk+=val;
 		}
 		else if(sd->state.lr_flag == 1) {
-			if(!(val<0 && ((val-val-val)>status->lhw.atk)))
+			if(!(val<0 && ((val-val-val)>status->lhw->atk)))
 				status->lhw->atk+=val;
 		}
 		break;
@@ -1281,7 +1281,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
 				status->rhw.atk2+=val;
 		}
 		else if(sd->state.lr_flag == 1) {
-			if(!(val<0 && ((val-val-val)>status->lhw.atk2)))
+			if(!(val<0 && ((val-val-val)>status->lhw->atk2)))
 				status->lhw->atk2+=val;
 		}
 		break;