1
0
Prechádzať zdrojové kódy

解决一人多卡bug

lixioayao 5 rokov pred
rodič
commit
87789b1172
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      bindmorecard.h

+ 1 - 0
bindmorecard.h

@@ -369,6 +369,7 @@ struct CloserCardFactory : CardFactory
 						if(cardid == cid)
 						return true;
 						auto npcard = card_list::instance()->get(cardid);
+                        if(!npcard) return true;
 						if(npcard->type_()!=opcard->type_())
 						return true;
 						uint64_t ct1 = npcard->time_();