actions: require action to be non-null if we query by action type

This commit is contained in:
Andrzej Rybczak
2013-07-13 19:04:22 +02:00
parent fb9df0caee
commit 7167d036d0
5 changed files with 14 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ struct Binding
{
typedef std::vector<Actions::BaseAction *> ActionChain;
Binding(Actions::Type at) : m_is_single(true), m_action(Actions::get(at)) { }
Binding(Actions::Type at) : m_is_single(true), m_action(&Actions::get(at)) { }
Binding(const ActionChain &actions) {
assert(actions.size() > 0);
if (actions.size() == 1) {