diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-18 17:50:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-18 17:50:24 +0300 |
commit | 43159aed2516e648c9d050b3312aa7678d2fae05 (patch) | |
tree | 1cfacc8583c7758e7f0a9be6da6a5550b6d326e5 /src/input/inputactionsortfunctor.h | |
parent | 77e0edc68f535b74ba8de261cc666707e6d6c81f (diff) | |
download | manaverse-43159aed2516e648c9d050b3312aa7678d2fae05.tar.gz manaverse-43159aed2516e648c9d050b3312aa7678d2fae05.tar.bz2 manaverse-43159aed2516e648c9d050b3312aa7678d2fae05.tar.xz manaverse-43159aed2516e648c9d050b3312aa7678d2fae05.zip |
Fix keys sorter. Some time probably it may crash before.
Diffstat (limited to 'src/input/inputactionsortfunctor.h')
-rw-r--r-- | src/input/inputactionsortfunctor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/inputactionsortfunctor.h b/src/input/inputactionsortfunctor.h index 6884f9c11..3de625fea 100644 --- a/src/input/inputactionsortfunctor.h +++ b/src/input/inputactionsortfunctor.h @@ -45,7 +45,7 @@ class InputActionSortFunctor final logger->log("broken key2: %ld", static_cast<long>(k2)); return false; } - return keys[k1].priority >= keys[k2].priority; + return keys[k1].priority > keys[k2].priority; } const InputActionData *keys A_NONNULLPOINTER; |