- Fix a memory leak with Sacrifice costs
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-25 13:20:27 +00:00
parent 71cc79b949
commit 3d414f74b3
3 changed files with 9 additions and 3 deletions
+7
View File
@@ -113,6 +113,13 @@ int ExtraCosts::doPay(){
}
return result;
}
ExtraCosts::~ExtraCosts(){
for (size_t i = 0; i < costs.size(); i++){
SAFE_DELETE(costs[i]);
}
}
void ExtraCosts::Dump(){
#ifdef WIN32
char buf[4096];