R_LoadTexturesPwad: don't do anything wad has no textures

This commit is contained in:
indev authored and Alug committed 2024-07-26 19:43:44 +02:00
1 parent 9c6669fd5c
commit 8d168076ef
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);