summaryrefslogtreecommitdiff
path: root/src/task_proto.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_proto.cc')
-rw-r--r--src/task_proto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/task_proto.cc b/src/task_proto.cc
index 9ed515e..8516e1c 100644
--- a/src/task_proto.cc
+++ b/src/task_proto.cc
@@ -238,7 +238,7 @@ int callback_lws_task(struct libwebsocket_context * context,
task_t moved_task;
for(it = tasklist.begin(); it != tasklist.end(); it++) {
task_t &t = *it;
- if(it->id == m.move.id) {
+ if(t.id == m.move.id) {
id_found = true;
t.x = x;
t.y = m.move.y;