mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Fix for ClientTaskState::UpdateTasksOnDeliver
Fix for issue introduced in changes to allow stacked items to be handed in. Calling GetCharges on an item that can not be stacked will return 0 so this mean't that task credit was not awarded for single items.
This commit is contained in:
parent
26e153727e
commit
22a157787e
@ -1749,7 +1749,7 @@ bool ClientTaskState::UpdateTasksOnDeliver(Client *c, std::list<ItemInst*>& Item
|
||||
}
|
||||
// We found an active task related to this item, so increment the done count
|
||||
Log.Out(Logs::General, Logs::Tasks, "[UPDATE] Increment on GiveItem");
|
||||
IncrementDoneCount(c, Task, i, j, k->GetCharges());
|
||||
IncrementDoneCount(c, Task, i, j, k->GetCharges() <= 0 ? 1 : k->GetCharges());
|
||||
Ret = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user