aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/scenes.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 4caa9a42a5..13c653ad09 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -1455,6 +1455,9 @@ void BallChain::init(Ball **ball) {
Ball *BallChain::sub04(Ball *ballP, Ball *ballN) {
if (!pTail) {
+ if (!cPlexLen)
+ error("BallChain::sub04: cPlexLen is 0");
+
cPlex = (byte *)calloc(cPlexLen, sizeof(Ball));
Ball *runPtr = (Ball *)&cPlex[(cPlexLen - 1) * sizeof(Ball)];