Fix segfault with attackmoving into a wall