mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 20:25:51 +12:00
Implement Stores
This commit is contained in:
parent
363e18ae8c
commit
b898983778
4 changed files with 120 additions and 127 deletions
|
@ -653,8 +653,8 @@ namespace HISP.Server
|
|||
while (reader.Read())
|
||||
{
|
||||
Item.ItemPurchaseQueueItem itm = new Item.ItemPurchaseQueueItem();
|
||||
itm.ItemId = reader.GetInt32(0);
|
||||
itm.ItemCount = reader.GetInt32(1);
|
||||
itm.ItemId = reader.GetInt32(1);
|
||||
itm.ItemCount = reader.GetInt32(2);
|
||||
queueItems.Add(itm);
|
||||
}
|
||||
sqlCommand.Dispose();
|
||||
|
|
|
@ -3609,7 +3609,7 @@ namespace HISP.Server
|
|||
Item.ItemPurchaseQueueItem[] queueItems = Database.GetItemPurchaseQueue(sender.LoggedinUser.Id);
|
||||
foreach (Item.ItemPurchaseQueueItem queueItem in queueItems)
|
||||
{
|
||||
for(int i = 0; i < queueItems.Length; i++)
|
||||
for(int i = 0; i < queueItem.ItemCount; i++)
|
||||
{
|
||||
sender.LoggedinUser.Inventory.AddIgnoringFull(new ItemInstance(queueItem.ItemId));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue