aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-06 17:54:32 +0100
committerWillem Jan Palenstijn2011-12-06 21:50:37 +0100
commit3840e86d0d3267a80c96ad52606267c94c46f688 (patch)
tree556f9690c25266476c62417051ecac94d41a9171 /engines/dreamweb/vgagrafx.cpp
parent0193ef590da121ca4053510d53aad0b3d6b7052a (diff)
downloadscummvm-rg350-3840e86d0d3267a80c96ad52606267c94c46f688.tar.gz
scummvm-rg350-3840e86d0d3267a80c96ad52606267c94c46f688.tar.bz2
scummvm-rg350-3840e86d0d3267a80c96ad52606267c94c46f688.zip
DREAMWEB: Paranoia range check
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r--engines/dreamweb/vgagrafx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 39142db574..3e1d97e5ca 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -182,6 +182,7 @@ void DreamGenContext::doShake() {
0, -2, 3, -2, 0, 2, 4, -1,
1, -3, 3, 0,
};
+ assert(counter < ARRAYSIZE(shakeTable));
int offset = shakeTable[counter];
engine->setShakePos(offset >= 0 ? offset : -offset);
}