aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_v2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-10 12:49:58 +0100
committerJohannes Schickel2013-11-10 12:49:58 +0100
commit5b1557adbf3525256de2fbc1daa92ac69ffc9410 (patch)
tree26fdcf1b659823b4e9cd402dda8fa61ede520743 /engines/kyra/screen_v2.cpp
parent9b3f1c81e8fba4ebac06c1a467c96e23c7e2da56 (diff)
downloadscummvm-rg350-5b1557adbf3525256de2fbc1daa92ac69ffc9410.tar.gz
scummvm-rg350-5b1557adbf3525256de2fbc1daa92ac69ffc9410.tar.bz2
scummvm-rg350-5b1557adbf3525256de2fbc1daa92ac69ffc9410.zip
KYRA: Properly check for empty rects in wsaFrameAnimationStep.
Discovered by covertiy (CID #1003839).
Diffstat (limited to 'engines/kyra/screen_v2.cpp')
-rw-r--r--engines/kyra/screen_v2.cpp2
1 files changed, 1 insertions, 1 deletions
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);