Fix compile error, fix teleport bug

(teleport bug happened if you spamclicked movement while using a
teleporting skill)