R_LoadTexturesPwad: don't do anything wad has no textures

This commit is contained in:
indev committed 2024-03-26 20:40:11 +03:00
1 parent c3a71b60b0
commit 54ee3f2961
1 file changed
+3
+3
View File
@@ -627,6 +627,9 @@ void R_LoadTexturesPwad(UINT16 wadnum)
{
INT32 newtextures = R_CountTextures(wadnum);
if (!newtextures)
return;
R_AllocateTextures(newtextures);
R_DefineTextures(numtextures, wadnum);
R_FinishLoadingTextures(newtextures);