Skip to content

Commit

Permalink
Merge pull request planetarium#267 from hskim881028/bugfix/add-except…
Browse files Browse the repository at this point in the history
…ion-handling-for-reward-item

Add exception handling for reward item
  • Loading branch information
hskim authored Jan 8, 2021
2 parents afd750e + e8fe2eb commit 2e1ac08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib9c/Battle/StageSimulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class StageSimulator : Simulator
{
private readonly List<Wave> _waves;
private readonly StageSheet.Row _stageRow;
private List<ItemBase> _waveRewards;
private List<ItemBase> _waveRewards = new List<ItemBase>();
public CollectionMap ItemMap = new CollectionMap();
public readonly EnemySkillSheet EnemySkillSheet;

Expand Down
5 changes: 5 additions & 0 deletions Lib9c/Model/Quest/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ public void UpdateItemGradeQuest(ItemUsable itemUsable)

public void UpdateItemTypeCollectQuest(IEnumerable<ItemBase> items)
{
if (items == null)
{
return;
}

foreach (var item in items.OrderBy(i => i.Id))
{
var targets = _quests
Expand Down

0 comments on commit 2e1ac08

Please sign in to comment.