diff options
| author | Juan Linietsky | 2015-05-18 11:14:02 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-05-18 11:14:02 -0300 |
| commit | 5900e7f589d50268d49e2e67d3a498d1b01fe03a (patch) | |
| tree | 9cb846b8fa92e64211e8c54bb78860873e723cb7 /core/input_map.cpp | |
| parent | e323cc050564fdb1b5cf81793d173cbd9483f55a (diff) | |
| download | godot-5900e7f589d50268d49e2e67d3a498d1b01fe03a.tar.gz godot-5900e7f589d50268d49e2e67d3a498d1b01fe03a.tar.zst godot-5900e7f589d50268d49e2e67d3a498d1b01fe03a.zip | |
Diffstat (limited to 'core/input_map.cpp')
| -rw-r--r-- | core/input_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/input_map.cpp b/core/input_map.cpp index 1196c0c86..24151c59c 100644 --- a/core/input_map.cpp +++ b/core/input_map.cpp @@ -168,7 +168,7 @@ Array InputMap::_get_action_list(const StringName& p_action) { Array ret; const List<InputEvent> *al = get_action_list(p_action); if (al) { - for(List<InputEvent>::Element *E=al->front();E;E=E->next()) { + for(const List<InputEvent>::Element *E=al->front();E;E=E->next()) { ret.push_back(E->get());; } @@ -192,7 +192,7 @@ bool InputMap::event_is_action(const InputEvent& p_event, const StringName& p_ac Map<StringName,Action >::Element *E=input_map.find(p_action); if(!E) { - ERR_EXPLAIN("Request for unexisting InputMap action: "+String(p_action)); + ERR_EXPLAIN("Request for nonexistent InputMap action: "+String(p_action)); ERR_FAIL_COND_V(!E,false); } |
