mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
Fix Crashing in Tack Shop Giveaway
This commit is contained in:
parent
4293657614
commit
5ff04d3f0e
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ namespace HISP.Game.Events
|
|||
int winIndx = GameServer.RandomNumberGenerator.Next(0, usersHere.Length);
|
||||
User winner = usersHere[winIndx];
|
||||
|
||||
winner.HorseInventory.AddHorse(HorseGiveaway);
|
||||
winner.HorseInventory.AddHorse(HorseGiveaway, true, true);
|
||||
winner.TrackedItems.GetTrackedItem(Tracking.TrackableItem.TackShopGiveaway).Count++;
|
||||
|
||||
byte[] horseWonMessage = PacketBuilder.CreateChat(Messages.FormatEventTackShopGiveawayWon(winner.Username, HorseGiveaway.Breed.Name, ShopName, Town.Name, usersHere.Length), PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||
|
|
Loading…
Add table
Reference in a new issue