diff --git a/src/r_things.c b/src/r_things.c
index 102efdec9d5ed46205631f57f7ec688206271e14..90d1bf6465ff685a0fa4d2fb084cab4bf6cd1131 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -431,7 +431,7 @@ boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef, UINT16
 
 	for (l = startlump; l < endlump; l++)
 	{
-		if (W_IsLumpFolder(wadnum, l))
+		if (longname && W_IsLumpFolder(wadnum, l))
 			I_Error("R_AddSingleSpriteDef: all frame lumps for a sprite should be contained inside a single folder\n");
 
 		// For long sprites, the startlump-endlump range only includes