assert that string variable actually exists before we start doing comparisons against the string

svn-id: r9696
This commit is contained in:
Jonathan Gray 2003-08-15 03:15:41 +00:00
parent 78b6cb41a9
commit 9d450bc9ce

View file

@ -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 {