Shang 369 Posted June 23, 2015 Share Posted June 23, 2015 Hi devs, I have a problem with an exploit with CHARACTER::GetQuestFlag. When the char calls a getqf, and he disconnects quickly, the player_id is 0 and core crashes. I already have a fix i found on epvp but it doesn't work. The core is still crashing. I have this fix (char.cpp): int CHARACTER::GetQuestFlag(const std::string& flag) const { quest::CQuestManager& q = quest::CQuestManager::instance(); quest::PC* pPC = q.GetPC(GetPlayerID()); if(!pPC) { sys_err("Nullpointer in CHARACTER::GetQuestFlag %lu", GetPlayerID()); return 0; } return pPC->GetFlag(flag); } if(!pPC) { sys_err("Nullpointer in CHARACTER::GetQuestFlag %lu", GetPlayerID()); return 0; } In syserr it says "Nullpointer[...]" but it seems like the return 0 doesn't exists because the core crashes. Then i need a fix... I hope one dev can make it. Link to comment Share on other sites More sharing options...
The Naid 119 Posted June 23, 2015 Share Posted June 23, 2015 Please don't help this guy.Why?Because this guy is a thief. Link to comment Share on other sites More sharing options...
Shang 369 Posted June 24, 2015 Author Share Posted June 24, 2015 Please don't help this guy.Why?Because this guy is a thief. A thief why? Link to comment Share on other sites More sharing options...
Shang 369 Posted June 25, 2015 Author Share Posted June 25, 2015 #UP Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now