diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-13 13:00:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-13 13:00:31 +0300 |
commit | 4e12e0514a3ade4f693c49353c369028481999d1 (patch) | |
tree | 587db6ef35a527f66c648be26c81a8efb1e44308 /src/keyboardconfig.cpp | |
parent | 83653c919a09f17c4c53a6d65678796ac866eb25 (diff) | |
download | ManaVerse-4e12e0514a3ade4f693c49353c369028481999d1.tar.gz ManaVerse-4e12e0514a3ade4f693c49353c369028481999d1.tar.bz2 ManaVerse-4e12e0514a3ade4f693c49353c369028481999d1.tar.xz ManaVerse-4e12e0514a3ade4f693c49353c369028481999d1.zip |
Add missing checks to keyboardconfig class.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r-- | src/keyboardconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp index ddfb30f97..6ce03f4a1 100644 --- a/src/keyboardconfig.cpp +++ b/src/keyboardconfig.cpp @@ -191,12 +191,12 @@ void KeyboardConfig::handleRepeat(int time) int &keyTime = (*it).second; if (key >= 0) { - if (mActiveKeys[key]) + if (mActiveKeys && mActiveKeys[key]) repeat = true; } else if (key < -1 && key > -500) { - if (mActiveKeys2[-key]) + if (mActiveKeys2 && mActiveKeys2[-key]) repeat = true; } if (repeat && abs(keyTime - time) > 10) |