Skip to content

Commit

Permalink
Get the right tech name.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Nov 9, 2015
1 parent 96b7879 commit c58e037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ class Player extends Component {
// Support old behavior of techs being registered as components.
// Remove once that deprecated behavior is removed.
if (!currentTech) {
currentTech = Component.getComponent(techName);
currentTech = Component.getComponent(this.techName_);
}

// case: Array of source objects to choose from and pick the best to play
Expand Down

0 comments on commit c58e037

Please sign in to comment.