From 56764a2309b98b5112613b59d1bd4e6e1a99e417 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 14 Oct 2011 12:11:09 +0100 Subject: [PATCH] Prevent integer overflow with emp_decor --- src/graphics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics.c b/src/graphics.c index 1f10b1177..80d0a4020 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1740,6 +1740,7 @@ void draw_other(pixel *vid) // EMP effect if (r>255) r=255; if (g>255) g=255; if (b>255) g=255; + if (a>255) a=255; for (j=0; j