Jump to content

CQuestManager::instance().GetCurrentNPCCharacterPtr()->GetDesc() error


Go to solution Solved by Zonni,

Recommended Posts

Hi developers,

when I am using this function:

int npc_get_client_version(lua_State* L)
{
	LPCHARACTER pChar = CQuestManager::instance().GetCurrentNPCCharacterPtr();
	lua_pushnumber(L, pChar && pChar->GetDesc() ? pChar->GetDesc()->GetClientVersion() : 0);
	return 1;
}

in questlua_npc.cpp I have this error:

hibacffa3.png

 

(This is not the same error function and not is my screen but the errors are the same because the GetDesc()..)

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.