Fixes pet loading.

This commit is contained in:
hondacrx
2017-07-06 11:03:57 -04:00
parent 1b47104167
commit 5dcf685258
+2 -2
View File
@@ -858,7 +858,7 @@ namespace Game.Entities
uint effectIndex = result.Read<byte>(3);
if (effectIndex < SpellConst.MaxEffects)
{
casterGuid.SetRawValue(result.Read<string>(0).ToByteArray());
casterGuid.SetRawValue(result.Read<byte[]>(0));
if (casterGuid.IsEmpty())
casterGuid = GetGUID();
@@ -881,7 +881,7 @@ namespace Game.Entities
do
{
// NULL guid stored - pet is the caster of the spell - see Pet._SaveAuras
casterGuid.SetRawValue(result.Read<string>(0).ToByteArray());
casterGuid.SetRawValue(result.Read<byte[]>(0));
if (casterGuid.IsEmpty())
casterGuid = GetGUID();