Jump to content

[Fix][7323] Character Customize should not force rename

Auntie Mangos

Recommended Posts

* What bug does the patch fix? What features does the patch add?

This patch makes it so that character customization (from AT_LOGIN_CUSTOMIZE) does not force you to rename. At the moment, if you leave your name the same, it will give you the error message that a character with that name already exists.

* For which repository revision was the patch created?

For Revision 7276

* Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

There is a bug report for this, see : http://getmangos.eu/community/viewtopic.php?id=6341

* Who has been writing this patch? Please include either forum user names or email addresses.

Just me.

diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp
index 9f3e070..a0fc085 100644
--- a/src/game/CharacterHandler.cpp
+++ b/src/game/CharacterHandler.cpp
@@ -1284,7 +1284,7 @@ void WorldSession::HandleCharCustomize(WorldPacket& recv_data)

-    if(objmgr.GetPlayerGUIDByName(newname))                 // character with this name already exist
+    if(objmgr.GetPlayerGUIDByName(newname) && objmgr.GetPlayerGUIDByName(newname) != guid)                 // character with this name already exist
        WorldPacket data(SMSG_CHAR_CUSTOMIZE, 1);
        data << uint8(CHAR_CREATE_NAME_IN_USE);

Link to comment
Share on other sites

  • 39 years later...
This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use