Fix FindFirstCommandSlotById to be able to find empty slots again

This commit is contained in:
yogurt 2017-09-03 11:18:35 -05:00
parent 2b5a6997f4
commit 50b4f517f2

View File

@ -1932,7 +1932,9 @@ namespace FFXIVClassic_Map_Server.Actors
//If the returned value is outside the hotbar, it indicates it wasn't found.
private ushort FindFirstCommandSlotById(uint commandId)
{
if(commandId != 0)
commandId |= 0xA0F00000;
ushort firstSlot = (ushort)(charaWork.commandBorder + 30);
for (ushort i = charaWork.commandBorder; i < charaWork.commandBorder + 30; i++)