diff options
author | Mikhail Redko <ovitnez@gmail.com> | 2021-04-04 23:19:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 22:19:29 +0200 |
commit | 6a72f9fbfd5a5a3e05e13abe38fe44c6ba3435f2 (patch) | |
tree | c3286e8610bc56a2b1ed64aae4fcd7af8d0e692c /src/server/game/Entities | |
parent | db69b832b9d5da1f755824a36fed37b1b4e39dcd (diff) |
Core/Player: Fix output of .additem command with negative count value (#26290)
Diffstat (limited to 'src/server/game/Entities')
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 16c3638c7b6..d33b591064b 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -12563,7 +12563,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; } } } @@ -12591,7 +12591,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; } } } @@ -12624,7 +12624,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; } } } @@ -12657,7 +12657,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; } } } @@ -12684,7 +12684,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; } } } @@ -12717,7 +12717,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; } } } |