Erwan
- Loading the "awardback.jpg" file in 16bits instead of 32. This should extremely reduce the probability of crashes (issue 247) - Added some error debug message for the test suite when a card cannot be found
This commit is contained in:
@@ -14,6 +14,9 @@ int Rules::getMTGId(string cardName){
|
||||
if (cardName.compare("*") == 0) return -1; //Any card
|
||||
MTGCard * card = GameApp::collection->getCardByName(cardName);
|
||||
if (card) return card->getMTGId();
|
||||
OutputDebugString("RULES: Can't find card:");
|
||||
OutputDebugString(cardName.c_str());
|
||||
OutputDebugString("\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user