-fix issue 66 (graveyard segfault)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-27 14:58:18 +00:00
parent 8709273def
commit 431d7f822c

View File

@@ -38,12 +38,12 @@ void CardDisplay::init(MTGGameZone * zone){
for (int i= 0; i< zone->nb_cards; i++){
AddCard(zone->cards[i]);
}
if (mObjects[0]) mObjects[0]->Entering();
if (mCount) mObjects[0]->Entering();
}
void CardDisplay::rotateLeft(){
if (start_item==0) return;
for (int i= 0; i<mCount; i++){
for (int i = 0; i<mCount; i++){
CardGui * cardg = (CardGui *)mObjects[i];
cardg->x+=30;
}