Browse Source

Fixed clif_parse_GMmessage cutting off messages randomly (typo in r9778)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9856 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 18 years ago
parent
commit
6eb920bf96
2 changed files with 3 additions and 1 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/clif.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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.
 
 2007/02/12
+	* Fixed clif_parse_GMmessage cutting off messages randomly [ultramage]
+	  (due to a typo in revision r9778)
 	* Fixed Wand of Hermod
 	* Corrected Spider Web casting around caster instead of target's position.
 	* Corrected a possible crash during login due to checking for the incorrect

+ 1 - 1
src/map/clif.c

@@ -9126,7 +9126,7 @@ void clif_parse_GMmessage(int fd, struct map_session_data *sd) {
 	if (pc_isGM(sd) < (lv=get_atcommand_level(AtCommand_Broadcast)))
 		return;
 
-	size = WFIFOW(fd,2)-4;
+	size = RFIFOW(fd,2)-4;
 	mes = RFIFOP(fd,4);
 	mes_len_check(mes, size, CHAT_SIZE);