- fixed a problem with DOS card files under psp/linux
- Added a bunch of SAFE_DELETE, not sure they're really necessary
- fixed a small interface problem in Shop
This commit is contained in:
wagic.the.homebrew
2008-11-30 11:47:47 +00:00
parent f4cb587426
commit 9ec06eb4e7
13 changed files with 31 additions and 35 deletions
+3 -3
View File
@@ -626,9 +626,9 @@ class AManaProducer: public MTGAbility{
~AManaProducer(){
LOG("==Destroying ManaProducer Object");
if (cost) delete cost;
SAFE_DELETE(cost);
SAFE_DELETE(output);
if (mParticleSys) delete mParticleSys;
SAFE_DELETE(mParticleSys);
LOG("==Destroying ManaProducer Object Successful!");
}
@@ -2377,7 +2377,7 @@ class AAtog:public TargetAbility{
TargetAbility::Update(dt);
Player * newController = source->controller();
if (newController != currentController){
delete tc;
SAFE_DELETE(tc);
MTGGameZone * zones[] = {newController->game->inPlay}; //In case Atog's controller changes
tc = NEW TypeTargetChooser("artifact", zones, 1, source);
currentController = newController;