- prevent a segfault in the test suite (does not fix the root cause)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-05 04:58:44 +00:00
parent 69a20f24c2
commit 681122f018

View File

@@ -75,7 +75,8 @@ void GuiPlay::BattleField::EnstackAttacker(CardView* card)
void GuiPlay::BattleField::EnstackBlocker(CardView* card)
{
GameObserver* game = GameObserver::GetInstance();
card->x = card->card->defenser->view->x; card->y = baseY + (game->players[0] == card->card->controller() ? 20 + y : -20 - y);
if (card->card && card->card->defenser && card->card->defenser->view) card->x = card->card->defenser->view->x;
card->y = baseY + (game->players[0] == card->card->controller() ? 20 + y : -20 - y);
}
void GuiPlay::BattleField::Update(float dt)
{