-removed memory leak introduced in r.789
-added "blocked" bool in MTGCardInstance
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-05 09:17:30 +00:00
parent bf42825be8
commit 380014b2a6
4 changed files with 24 additions and 16 deletions

View File

@@ -852,12 +852,14 @@ int WResourceManager::fileOK(string filename, bool relative){
else
fp = NEW std::ifstream(filename.c_str());
if(fp && *fp){
int result = 0;
if(fp){
if(*fp) result = 1;
fp->close();
return 1;
delete fp;
}
return 0;
return result;
}
int WResourceManager::CreateTexture(const string &textureName) {