aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-25 14:20:47 +0000
committerSven Hesse2011-01-25 14:20:47 +0000
commit330acb21688c56140ff2e4f4303c6ac9be4d6e93 (patch)
tree71ad364189691015055e51f7b752df73051025c6 /engines/gob/inter_v2.cpp
parente32c9a10bfdfc9989530be9b4751f1855480b933 (diff)
downloadscummvm-rg350-330acb21688c56140ff2e4f4303c6ac9be4d6e93.tar.gz
scummvm-rg350-330acb21688c56140ff2e4f4303c6ac9be4d6e93.tar.bz2
scummvm-rg350-330acb21688c56140ff2e4f4303c6ac9be4d6e93.zip
GOB: Add a sanity check assert()
svn-id: r55535
Diffstat (limited to 'engines/gob/inter_v2.cpp')
-rw-r--r--engines/gob/inter_v2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index c2d3742305..3b05b1c335 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -395,6 +395,8 @@ void Inter_v2::o2_initMult() {
}
void Inter_v2::o2_loadMultObject() {
+ assert(_vm->_mult->_objects);
+
int16 val;
int16 objIndex;
int16 animation;