Textures mixed up in different assets

So, a few days ago, I came upon a bug that is now becoming more and more common. In my viewport, everything is fine, but when I click play, the textures of different objects are mixed up. Here are some screenshots showing what I mean.