Erwan
- had some problems compiling for the PSP. I assume I was the only one, please let me know if the "include JLogger" lines are not needed (they were needed for me) - Fix a memory leak when playing in "random deck" mode - Prevent the AI from playing cards with a cost it cannot understand (ExtraCosts with a target).
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "MTGAbility.h"
|
||||
#include "DeckManager.h"
|
||||
#include "AIPlayer.h"
|
||||
#include <JLogger.h>
|
||||
|
||||
int Rules::getMTGId(string cardName)
|
||||
{
|
||||
@@ -297,6 +298,7 @@ Player * Rules::loadPlayerRandom(int isAI, int mode)
|
||||
else
|
||||
player = NEW AIPlayerBaka(tempDeck, deckFile, deckFileSmall, "");
|
||||
|
||||
delete tempDeck;
|
||||
return player;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user