diff options
author | Eugene Sandulenko | 2016-08-08 20:52:43 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-08 20:52:43 +0200 |
commit | a253d1f50e7ea624c5d8f53119506f5fd7e47baa (patch) | |
tree | 8e4169f54a987effbdceaa33281f7e3d6fa15bb4 /engines | |
parent | d07460963d091f78c677e31eeaa3760e7a801016 (diff) | |
download | scummvm-rg350-a253d1f50e7ea624c5d8f53119506f5fd7e47baa.tar.gz scummvm-rg350-a253d1f50e7ea624c5d8f53119506f5fd7e47baa.tar.bz2 scummvm-rg350-a253d1f50e7ea624c5d8f53119506f5fd7e47baa.zip |
DIRECTOR: Fix crash during test execution
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index bcf65d8428..6587270641 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -429,6 +429,11 @@ void Score::loadScriptText(Common::SeekableSubReadStreamEndian &stream) { } void Score::setStartToLabel(Common::String label) { + if (!_labels) { + warning("setStartToLabel: No labels set"); + return; + } + Common::SortedArray<Label *>::iterator i; for (i = _labels->begin(); i != _labels->end(); ++i) { |