diff options
author | Tarek Soliman | 2011-10-15 00:38:10 -0500 |
---|---|---|
committer | Tarek Soliman | 2011-10-27 10:46:22 -0500 |
commit | 8d970f35684f15e1a2a2fb125d4da70ea901fecf (patch) | |
tree | b1a03701e2fadbe34b470d6c226ad9d88d3b037e /engines/kyra | |
parent | 2df4b5385c7ae1a2d6d703b06a3749b64f216c15 (diff) | |
download | scummvm-rg350-8d970f35684f15e1a2a2fb125d4da70ea901fecf.tar.gz scummvm-rg350-8d970f35684f15e1a2a2fb125d4da70ea901fecf.tar.bz2 scummvm-rg350-8d970f35684f15e1a2a2fb125d4da70ea901fecf.zip |
KYRA: Cleanup game keymaps on RTL
This fixes an RTL problem where the keymaps linger between same-engine games.
Meaning the lol keymap shows up in kyra1
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/lol.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 8ed192a04a..78ed428b69 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -249,6 +249,10 @@ LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : KyraEngine_v1(sy LoLEngine::~LoLEngine() { setupPrologueData(false); +#ifdef ENABLE_KEYMAPPER + _eventMan->getKeymapper()->cleanupGameKeymaps(); +#endif + delete[] _landsFile; delete[] _levelLangFile; |