aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities
diff options
context:
space:
mode:
authorMikhail Redko <ovitnez@gmail.com>2021-04-04 23:19:29 +0300
committerGitHub <noreply@github.com>2021-04-04 22:19:29 +0200
commit6a72f9fbfd5a5a3e05e13abe38fe44c6ba3435f2 (patch)
treec3286e8610bc56a2b1ed64aae4fcd7af8d0e692c /src/server/game/Entities
parentdb69b832b9d5da1f755824a36fed37b1b4e39dcd (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.cpp12
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;
}
}
}