Fix crash when starting game

This commit is contained in:
drdev
2014-12-02 04:18:45 +00:00
parent 905eb0bb1f
commit dc93196b56

View File

@@ -762,7 +762,7 @@ public class CardView extends GameEntityView {
return get(TrackableProperty.Power);
}
void updatePower(Card c) {
if (c.getCurrentState().getView() == this) {
if (c.getCurrentState().getView() == this || !c.hasAlternateState()) {
set(TrackableProperty.Power, c.getNetPower());
}
else {
@@ -782,7 +782,7 @@ public class CardView extends GameEntityView {
return get(TrackableProperty.Toughness);
}
void updateToughness(Card c) {
if (c.getCurrentState().getView() == this) {
if (c.getCurrentState().getView() == this || !c.hasAlternateState()) {
set(TrackableProperty.Toughness, c.getNetToughness());
}
else {