I didn't see the whole trick, only from about half-way through.
But close to the end, the 'half person' was wheeled out of site and then returned for the legs to be re-joined. So, based on what I did see, I assume it was simply a case of two people who were switched - an amputee with no legs...