Commit b96c00cc authored by rampageghost's avatar rampageghost Committed by GitHub

Update game.cpp

bug fix:
while game exits with abnormal behavior, tMap list won't be freed.
parent 4a57eac0
...@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) { ...@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
driver->setTextureCreationFlag(irr::video::ETCF_OPTIMIZED_FOR_QUALITY, true); driver->setTextureCreationFlag(irr::video::ETCF_OPTIMIZED_FOR_QUALITY, true);
imageManager.SetDevice(device); imageManager.SetDevice(device);
imageManager.ClearTexture();
if(!imageManager.Initial(workingDir)) if(!imageManager.Initial(workingDir))
return false; return false;
// LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles // LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment