Jump to content

uint64 to ObjectGuid


Recommended Posts

Posted

I was using External SQL Mail patch, but after update i have a little problem with code because of this:

Before:

...
uint64 receiver_guid = fields[1].GetUInt64();
...

Player *receiver = sObjectMgr.GetPlayer(receiver_guid);
...

But now this throws error because GetPlayer needs a ObjectGuid variable

I have been trying to fix it myself but i don't achieve to imagin how to "convert" uint64 to ObjectGuid

Could you help me?

Thank you!!

Posted

You sure that in DB stored _full_ player guid? With big chance it must be uint32 low guid part

In like case read must be ObjectGuid(HIGUID_PLAYER, fields[1].GetUInt32())

This immortant if at some moment mangos start use !=0 player high guid part.

×
×
  • 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