From 5b1557adbf3525256de2fbc1daa92ac69ffc9410 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 10 Nov 2013 12:49:58 +0100 Subject: KYRA: Properly check for empty rects in wsaFrameAnimationStep. Discovered by covertiy (CID #1003839). --- engines/kyra/screen_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra/screen_v2.cpp') diff --git a/engines/kyra/screen_v2.cpp b/engines/kyra/screen_v2.cpp index cc7d526ffe..23eb94cb53 100644 --- a/engines/kyra/screen_v2.cpp +++ b/engines/kyra/screen_v2.cpp @@ -280,7 +280,7 @@ void Screen_v2::setTextColorMap(const uint8 *cmap) { void Screen_v2::wsaFrameAnimationStep(int x1, int y1, int x2, int y2, int w1, int h1, int w2, int h2, int srcPage, int dstPage, int dim) { - if (!(w1 || h1 || w2 || h2)) + if (!w1 || !h1 || !w2 || !h2) return; ScreenDim cdm = *getScreenDim(dim); -- cgit v1.2.3