diff options
author | Jonathan Gray | 2003-08-15 03:15:41 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-08-15 03:15:41 +0000 |
commit | 9d450bc9ce21b2e702e15f18b9dff2a65c0373bb (patch) | |
tree | cc181cecf14dc1ca2a90a63b5771a7f7dbebc222 /scumm | |
parent | 78b6cb41a934e6ee47f2891cac4db9f98ec11935 (diff) | |
download | scummvm-rg350-9d450bc9ce21b2e702e15f18b9dff2a65c0373bb.tar.gz scummvm-rg350-9d450bc9ce21b2e702e15f18b9dff2a65c0373bb.tar.bz2 scummvm-rg350-9d450bc9ce21b2e702e15f18b9dff2a65c0373bb.zip |
assert that string variable actually exists before we start doing comparisons against the string
svn-id: r9696
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v6.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 31f5eea0fb..58b8e3043f 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -2386,6 +2386,7 @@ void Scumm_v6::o6_kernelSetFunctions() { // _imuseDigital->stopAll(); // } uint32 speed; + assert(getStringAddressVar(VAR_VIDEONAME)); if (strcmp((char *)getStringAddressVar(VAR_VIDEONAME), "sq3.san") == 0) speed = 71000; else { |