Core/Player: Fix output of .additem command with negative count value (#26290)
(cherry picked from commit 6a72f9fbfd5a5a3e05e13abe38fe44c6ba3435f2)
This commit is contained in:
@@ -12826,7 +12826,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12859,7 +12859,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12892,7 +12892,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12919,7 +12919,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12952,7 +12952,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12984,7 +12984,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13012,7 +13012,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13040,7 +13040,7 @@ uint32 Player::DestroyItemCount(uint32 itemEntry, uint32 count, bool update, boo
|
||||
if (IsInWorld() && update)
|
||||
item->SendUpdateToPlayer(this);
|
||||
item->SetState(ITEM_CHANGED, this);
|
||||
return remcount;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user