diff --git a/src/k_terrain.c b/src/k_terrain.c index 0c6ed43a0..598dc98ee 100644 --- a/src/k_terrain.c +++ b/src/k_terrain.c @@ -2066,4 +2066,6 @@ void K_InitTerrain(UINT16 wadNum) free(name); } } + + R_ClearTextureNumCache(false); } diff --git a/src/r_textures.c b/src/r_textures.c index 40dbf291c..e65d5d907 100644 --- a/src/r_textures.c +++ b/src/r_textures.c @@ -27,6 +27,7 @@ #include "p_setup.h" // levelflats #include "byteptr.h" #include "dehacked.h" +#include "k_terrain.h" #ifdef HWRENDER #include "hardware/hw_glob.h" // HWR_LoadMapTextures