Skip to content

Commit

Permalink
should fix crash by constructed deck detection (HearthSim#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Apr 20, 2015
1 parent 4366f84 commit 76d3e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/GameEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public void HandlePossibleConstructedCard(string id, bool canBeDoneImporting)
if(_doneImportingConstructed)
return;
var card = Game.GetCardFromId(id);
if(!Game.IsActualCard(card))
if(card == null || !Game.IsActualCard(card))
return;
if(canBeDoneImporting)
{
Expand Down

0 comments on commit 76d3e0c

Please sign in to comment.