From 50b4f517f210f0911b15899f61d5cd5b9e4a2854 Mon Sep 17 00:00:00 2001 From: yogurt Date: Sun, 3 Sep 2017 11:18:35 -0500 Subject: [PATCH] Fix FindFirstCommandSlotById to be able to find empty slots again --- FFXIVClassic Map Server/actors/chara/player/Player.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FFXIVClassic Map Server/actors/chara/player/Player.cs b/FFXIVClassic Map Server/actors/chara/player/Player.cs index b2d591dd..89fda7eb 100644 --- a/FFXIVClassic Map Server/actors/chara/player/Player.cs +++ b/FFXIVClassic Map Server/actors/chara/player/Player.cs @@ -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) { - commandId |= 0xA0F00000; + if(commandId != 0) + commandId |= 0xA0F00000; + ushort firstSlot = (ushort)(charaWork.commandBorder + 30); for (ushort i = charaWork.commandBorder; i < charaWork.commandBorder + 30; i++)