From 7608583c6fbe134d6f9ef6677cd2d1b3c26c6cd5 Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Mon, 10 Sep 2018 16:42:07 -0400
Subject: [PATCH] Fix shared colormap matching

---
 src/r_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/r_data.c b/src/r_data.c
index eb5e27b0b0..eef6434b0c 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -1591,7 +1591,7 @@ extracolormap_t *R_CreateColormap(char *p1, char *p2, char *p3)
 
 	for (exc = extra_colormaps; exc; exc = exc->next)
 	{
-		if (exc->lump)
+		if (exc->lump != LUMPERROR)
 			continue;
 		if (maskcolor == exc->maskcolor
 			&& fadecolor == exc->fadecolor
-- 
GitLab