Editor: fix npc painted a non existring direction. Fix #510.
Merge pull request #512 from Maxs1789/issue510

Editor: fix npc painted a non existring direction. Fix #510.