mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 04:07:48 +00:00
Fixed wrong values sent for the setactorproperty packet. Initialized commandSlot_compatibility which was null.
This commit is contained in:
parent
156f8e1e7d
commit
d42dac543f
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
|
||||||
|
|
||||||
public int[] state_boostPointForSkill;
|
public int[] state_boostPointForSkill;
|
||||||
|
|
||||||
public int[] commandSlot_compatibility;
|
public uint[] commandSlot_compatibility = new uint[40];
|
||||||
public uint[] commandSlot_recastTime = new uint[40];
|
public uint[] commandSlot_recastTime = new uint[40];
|
||||||
|
|
||||||
public int[] giftCommandSlot_commandId;
|
public int[] giftCommandSlot_commandId;
|
||||||
|
|
|
@ -171,14 +171,14 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
|
||||||
|
|
||||||
public void addTarget()
|
public void addTarget()
|
||||||
{
|
{
|
||||||
binWriter.Write((byte)(isMore ? 0x62 + currentTarget.Length : 0x82 + currentTarget.Length));
|
binWriter.Write((byte)(isMore ? 0x60 + currentTarget.Length : 0x82 + currentTarget.Length));
|
||||||
binWriter.Write(Encoding.ASCII.GetBytes(currentTarget));
|
binWriter.Write(Encoding.ASCII.GetBytes(currentTarget));
|
||||||
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addTarget(string newTarget)
|
public void addTarget(string newTarget)
|
||||||
{
|
{
|
||||||
binWriter.Write((byte)(isMore ? 0x62 + currentTarget.Length : 0x82 + currentTarget.Length));
|
binWriter.Write((byte)(isMore ? 0x60 + currentTarget.Length : 0x82 + currentTarget.Length));
|
||||||
binWriter.Write(Encoding.ASCII.GetBytes(currentTarget));
|
binWriter.Write(Encoding.ASCII.GetBytes(currentTarget));
|
||||||
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
||||||
currentTarget = newTarget;
|
currentTarget = newTarget;
|
||||||
|
|
Loading…
Add table
Reference in a new issue