mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Fixed wrong values sent for the setactorproperty packet. Initialized commandSlot_compatibility which was null.
This commit is contained in:
parent
156f8e1e7d
commit
d42dac543f
@ -18,7 +18,7 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
|
||||
|
||||
public int[] state_boostPointForSkill;
|
||||
|
||||
public int[] commandSlot_compatibility;
|
||||
public uint[] commandSlot_compatibility = new uint[40];
|
||||
public uint[] commandSlot_recastTime = new uint[40];
|
||||
|
||||
public int[] giftCommandSlot_commandId;
|
||||
|
@ -171,14 +171,14 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
|
||||
|
||||
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));
|
||||
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
||||
}
|
||||
|
||||
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));
|
||||
runningByteTotal += (ushort)(1 + Encoding.ASCII.GetByteCount(currentTarget));
|
||||
currentTarget = newTarget;
|
||||
|
Loading…
Reference in New Issue
Block a user