diff --git a/server/inputs-channel-client.cpp b/server/inputs-channel-client.cpp index 31f22b9e..0c8ff0cf 100644 --- a/server/inputs-channel-client.cpp +++ b/server/inputs-channel-client.cpp @@ -69,9 +69,9 @@ void InputsChannelClient::send_migrate_data(SpiceMarshaller *m, RedPipeItem *ite spice_marshaller_add_uint16(m, motion_count); } -void InputsChannelClient::handle_migrate_data(uint16_t motion_count) +void InputsChannelClient::handle_migrate_data(uint16_t new_motion_count) { - motion_count = motion_count; + motion_count = new_motion_count; for (; motion_count >= SPICE_INPUT_MOTION_ACK_BUNCH; motion_count -= SPICE_INPUT_MOTION_ACK_BUNCH) {