From 3840e86d0d3267a80c96ad52606267c94c46f688 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 6 Dec 2011 17:54:32 +0100 Subject: DREAMWEB: Paranoia range check --- engines/dreamweb/vgagrafx.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/dreamweb/vgagrafx.cpp') 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); } -- cgit v1.2.3