From 826e8e1aaf3d84ef96a8bb76ee640f13a01918bc Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sun, 23 Jun 2019 17:07:20 +0100 Subject: [PATCH] Fixed goofups I missed back 3 months ago --- src/w_wad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index 9c8fccc6e..e06337810 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1157,13 +1157,13 @@ boolean W_IsLumpWad(lumpnum_t lumpnum) // W_IsLumpFolder // Is the lump a folder? (in a PK3 obviously) // -boolean W_IsLumpFolder(UINT16 wad, UINT16 lump); +boolean W_IsLumpFolder(UINT16 wad, UINT16 lump) { if (wadfiles[wad]->type == RET_PK3) { - const char *name = wadfiles[wad]->lumpinfo[lump]->name2; + const char *name = wadfiles[wad]->lumpinfo[lump].name2; - return (name[strlen(name)-1] == '/') // folders end in '/' + return (name[strlen(name)-1] == '/'); // folders end in '/' } return false; // non-PK3s don't have folders