Not sure what's going on. Was this after you died inside the castle? This was a bug in and older version. You can download the game again to get the new version. It should work with your save file. You can see if you have the old version if your folder in Appdata is called "and_yet_it_hurt".
If you have the new version. I'm not sure what is going on. Perhaps try closing and opening the castle.txt file again, or restarting the game.
Sorry about this!