Core/Player: Fix output of .additem command with negative count value

Port From (https://github.com/TrinityCore/TrinityCore/commit/6855c81df1226a4086e2587b3f1800579f078321)
This commit is contained in:
hondacrx
2022-05-26 16:17:49 -04:00
parent 5edc228fa6
commit 0b1cde8396
+8 -8
View File
@@ -5593,7 +5593,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5628,7 +5628,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5662,7 +5662,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5690,7 +5690,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5725,7 +5725,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5758,7 +5758,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5787,7 +5787,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}
@@ -5816,7 +5816,7 @@ namespace Game.Entities
if (IsInWorld && update)
item.SendUpdateToPlayer(this);
item.SetState(ItemUpdateState.Changed, this);
return remcount;
return count;
}
}
}