From 0c810d0f8d6a79532dba23b6da753782206669ef Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Sun, 11 Jul 2021 20:02:35 -0700 Subject: [PATCH] Fix UB: use unsigned add for draugr's cloak color --- graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index c757d3fb..001527aa 100644 --- a/graph.cpp +++ b/graph.cpp @@ -2096,7 +2096,7 @@ EX bool drawMonsterType(eMonster m, cell *where, const shiftmatrix& V1, color_t b--; if(b < 0) b = 0; if(b > 6) b = 6; - queuepoly(VHEAD1, cgi.shWightCloak, (0x605040A0 | UNTRANS) + 0x10101000 * b); + queuepoly(VHEAD1, cgi.shWightCloak, color_t(0x605040A0 | UNTRANS) + color_t(0x10101000 * b)); return true; }