summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-21 22:54:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-21 22:54:55 +0300
commit89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (patch)
treeb95f6dbb5277b46c4be7d7d58cb8ed0521500e10
parent9e07606afcbb35842fa5472e5ac04dbae6b9e5ca (diff)
downloadmanaplus-89b267d6d73bbc59f7c313b8a22b97fbb27f99a8.tar.gz
manaplus-89b267d6d73bbc59f7c313b8a22b97fbb27f99a8.tar.bz2
manaplus-89b267d6d73bbc59f7c313b8a22b97fbb27f99a8.tar.xz
manaplus-89b267d6d73bbc59f7c313b8a22b97fbb27f99a8.zip
Fix reading all assigned keys for actions.
Before was issue if second or third not set was used default value.
-rw-r--r--src/input/inputmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index bf4433339..d07522146 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -177,6 +177,8 @@ void InputManager::retrieve() restrict2
i2 ++;
}
}
+ for (; i2 < inputFunctionSize; i2 ++)
+ kf.values[i2] = InputItem();
}
updateKeyString(kf, i);
}