From 335fc0b3275fa0368489ebe0ff6231f7995ceed0 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 27 Jun 2020 14:30:41 -0700 Subject: [PATCH] Use levelflat->name instead of flatname --- src/p_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index 5027bab0c..12f12e27a 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -575,9 +575,9 @@ Ploadflat (levelflat_t *levelflat, const char *flatname, boolean resize) strupr(levelflat->name); /* If we can't find a flat, try looking for a texture! */ - if (( flatnum = R_GetFlatNumForName(flatname) ) == LUMPERROR) + if (( flatnum = R_GetFlatNumForName(levelflat->name) ) == LUMPERROR) { - if (( texturenum = R_CheckTextureNumForName(flatname) ) == -1) + if (( texturenum = R_CheckTextureNumForName(levelflat->name) ) == -1) { // check for REDWALL if (( texturenum = R_CheckTextureNumForName("REDWALL") ) != -1)