Skip to content

Commit

Permalink
fix NRE in PowerHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zeier committed Jul 21, 2016
1 parent b82f048 commit 40ec6ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void Handle(string logLine, IHsGameState gameState, IGame game)
_tagChangeHandler.ClearQueuedActions();
else if(gameState.GameTriggerCount == 0 && logLine.Contains("BLOCK_START BlockType=TRIGGER Entity=GameEntity"))
gameState.GameTriggerCount++;
else if(gameState.GameTriggerCount < 10 && logLine.Contains("BLOCK_END") && game.GameEntity.HasTag(GameTag.TURN))
else if(gameState.GameTriggerCount < 10 && logLine.Contains("BLOCK_END") && (game.GameEntity?.HasTag(GameTag.TURN) ?? false))
{
gameState.GameTriggerCount += 10;
_tagChangeHandler.InvokeQueuedActions(game);
Expand Down

0 comments on commit 40ec6ac

Please sign in to comment.