Jump to content

[10854] [crash and work fix] Character erase


Auntie Mangos

Recommended Posts

Report : http://getmangos.eu/community/topic/15267/mangos012-crash-character-erase/

patch :


diff --git a/src/mangosd/CliRunnable.cpp b/src/mangosd/CliRunnable.cpp
index e7e6375..a7d077a 100644
--- a/src/mangosd/CliRunnable.cpp
+++ b/src/mangosd/CliRunnable.cpp
@@ -410,13 +410,13 @@ bool ChatHandler::HandleCharacterDeletedOldCommand(char* args)
bool ChatHandler::HandleCharacterEraseCommand(char* args)
{
    char* nameStr = ExtractLiteralArg(&args);
-    if (!*nameStr)
+    if (!nameStr)
        return false;

    Player* target;
    uint64 target_guid;
    std::string target_name;
-    if (!ExtractPlayerTarget(&args, &target, &target_guid, &target_name))
+    if (!ExtractPlayerTarget(&nameStr, &target, &target_guid, &target_name))
        return false;

    uint32 account_id;

Link to comment
Share on other sites

  • 40 years later...
Guest
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