R_LoadTexturesPwad: don't do anything wad has no textures
This commit is contained in:
1 parent
9c6669fd5c
commit
8d168076ef
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user