Compile fix for a fix for legcuffs.
Merge pull request #5217 from comma/master

Compile fix for a fix for legcuffs.