diff options
author | Florian Kagerer | 2009-10-02 23:13:47 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-02 23:13:47 +0000 |
commit | 548d139b48d76d391051520d828d977893c0cf28 (patch) | |
tree | dde3f600fc4d709c30d45081bf5f1042b17f9691 /engines/kyra/lol.cpp | |
parent | 14d6b33e4f989ddf1788821b9dfe05d22aa9736a (diff) | |
download | scummvm-rg350-548d139b48d76d391051520d828d977893c0cf28.tar.gz scummvm-rg350-548d139b48d76d391051520d828d977893c0cf28.tar.bz2 scummvm-rg350-548d139b48d76d391051520d828d977893c0cf28.zip |
LOL: cleanup
svn-id: r44549
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r-- | engines/kyra/lol.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 4ed15c9bab..b53b6043da 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -321,8 +321,7 @@ LoLEngine::~LoLEngine() { delete[] _monsterPalettes; delete[] _monsterShapesEx; - if (_automapShapes) - delete[] _automapShapes; + delete[] _automapShapes; for (Common::Array<const TIMOpcode*>::iterator i = _timIntroOpcodes.begin(); i != _timIntroOpcodes.end(); ++i) delete *i; @@ -617,8 +616,7 @@ void LoLEngine::preInit() { char filename[32]; snprintf(filename, sizeof(filename), "LANDS.%s", _languageExt[_lang]); _res->exists(filename, true); - if (_landsFile) - delete[] _landsFile; + delete[] _landsFile; _landsFile = _res->fileData(filename, 0); loadItemIconShapes(); } |