Mapping error help

Hi all! I've been playing around with mapping in XP and I've come up against a bit of an issue. I'm hoping it's one of those things that I am tired and someone will point out some stupid thing I've neglected, lol, because I cannot for the life of me sort it out.

In this pic, the first shot is in game. You can see how the roof is messed up. But I can't sort out why. The tile that is showing is on the middle layer and the top layer tile is not showing, or not showing properly. Any help as to what I'm doing wrong would be greatly appreciated.

XPmaphelp.png
Have you checked the priorities in the database? Normally, if you haven't changed anything, both tiles should be 5.

(I just made a map with this tileset on a new project and I didn't run into this problem.)
Yay, that was it! I had combined some tilesets to make a new one, and tried to set the passability/priority as best as I could. But to be honest, I wasn't quite understanding priority until now. Thanks Slim!

Original thread: https://forums.rpgmakerweb.com/threads/mapping-error-help.38039/