mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-23 05:07:47 +00:00
Fix FindFirstCommandSlotById to be able to find empty slots again
This commit is contained in:
parent
2b5a6997f4
commit
50b4f517f2
1 changed files with 3 additions and 1 deletions
|
@ -1932,7 +1932,9 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||||
//If the returned value is outside the hotbar, it indicates it wasn't found.
|
//If the returned value is outside the hotbar, it indicates it wasn't found.
|
||||||
private ushort FindFirstCommandSlotById(uint commandId)
|
private ushort FindFirstCommandSlotById(uint commandId)
|
||||||
{
|
{
|
||||||
commandId |= 0xA0F00000;
|
if(commandId != 0)
|
||||||
|
commandId |= 0xA0F00000;
|
||||||
|
|
||||||
ushort firstSlot = (ushort)(charaWork.commandBorder + 30);
|
ushort firstSlot = (ushort)(charaWork.commandBorder + 30);
|
||||||
|
|
||||||
for (ushort i = charaWork.commandBorder; i < charaWork.commandBorder + 30; i++)
|
for (ushort i = charaWork.commandBorder; i < charaWork.commandBorder + 30; i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue