W_GetTexPatchLumpNum uses W_CheckNumForPatchName

Absolutely never allow a flat
This commit is contained in:
Sally Coolatta 2024-05-20 17:55:33 -04:00 committed by spherallic
parent 7c4442a340
commit 90195e6105

View file

@ -1179,7 +1179,7 @@ static lumpnum_t W_GetTexPatchLumpNum(const char *name)
if (lump == LUMPERROR)
{
// Use whatever else you can find.
return W_GetNumForName(name);
return W_CheckNumForPatchName(name);
}
return lump;