Jump to content

std::string


Guest iTz BinaryX

Recommended Posts

Instantly crashes the server when logging in with a character:

CharacterHandler.cpp (under the motd):


       std::string msg;
       msg.append("You currently have: ");
       msg.append((const char*) pCurrChar->GetPoints());
       msg.append(" donator points.");
       ChatHandler(pCurrChar).PSendSysMessage(msg.c_str());
       msg.clear();

I debugged it and it is the pCurrChar->GetPoints();

Player.h

uint32 mPoints;
uint32 GetPoints() { return  mPoints; }

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