aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 3d154a851d..ca8b4f20c2 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2063,6 +2063,8 @@ void Scumm::setCameraAt(int pos_x, int pos_y) {
}
void Scumm::setCameraFollows(Actor *a) {
+ assert(a != NULL);
+
if (_features & GF_AFTER_V7) {
byte oldfollow = camera._follows;
int ax, ay;