From 1178f50fa3fcca5c7d67b1bb131adbbe040cde26 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Fri, 29 Jul 2022 23:53:18 +0700 Subject: [PATCH] replace `fullcolormap` with `colormaps[0]` in anti-aliasing precalculation Fixes a crash when loading a saved game with the automap open. --- src/am_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/am_map.c b/src/am_map.c index 40619a95..17259b15 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -714,7 +714,7 @@ void AM_LevelInit(void) #undef REINDEX for (int shade = 0; shade < NUMSHADES; ++shade) { - color_shades[color * NUMSHADES + shade] = fullcolormap[shade_index[shade]]; + color_shades[color * NUMSHADES + shade] = colormaps[0][shade_index[shade]]; } } }