Ver código fonte

* Fixed @makehomun not checking for existing homunculus properly and thus allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14806 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 anos atrás
pai
commit
a5fb3f66cb
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/atcommand.c

+ 1 - 0
Changelog-Trunk.txt

@@ -1,6 +1,7 @@
 Date	Added
 
 2011/04/28
+	* Fixed @makehomun not checking for existing homunculus properly and thus allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272). [Ai4rei]
 	* Updated packet 0x163 (ZC_BAN_LIST) to reflect change in packet layout introduced with 2010-08-03aRagexeRE (bugreport:4881, follow up to r14718). [Ai4rei]
 	* Fixed formatted broadcast messages not working with 2010-11-24aRagexeRE and later (bugreport:4872, since r14120). [Ai4rei]
 2011/04/27

+ 1 - 1
src/map/atcommand.c

@@ -7166,7 +7166,7 @@ ACMD_FUNC(makehomun)
 	int homunid;
 	nullpo_retr(-1, sd);
 
-	if ( merc_is_hom_active(sd->hd) ) {
+	if ( sd->status.hom_id ) {
 		clif_displaymessage(fd, msg_txt(450));
 		return -1;
 	}