Jump to content

[7357] double applied playerlink in .levelup command

Guest balrok

Recommended Posts


if you target a player and type .levelup 10 then the sysmessage will show a strangelooking playerlink - which is caused through a double applied playerlink





getnamelink(plr*) creates a namelink from player

and some lines down this "std::string nameLink = playerLink(name);" is used too

diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 51e840d..ec2bd95 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -3852,7 +3852,7 @@ bool ChatHandler::HandleLevelUpCommand(const char* args)
            return false;

-        name = GetNameLink(chr);
+        name = chr->GetName();

    assert(chr || chr_guid);

Link to comment
Share on other sites

  • 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