diff options
author | Eugene Sandulenko | 2017-02-22 17:18:55 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-22 17:18:55 +0100 |
commit | a441f4a047b8af8c48a29677c95d6d2268f81982 (patch) | |
tree | 7cb099196239b1f337d639526bbd5670823883e0 /engines/director | |
parent | 9cdeb4c88ec5dafba4640c3cc442b9486a068ba7 (diff) | |
download | scummvm-rg350-a441f4a047b8af8c48a29677c95d6d2268f81982.tar.gz scummvm-rg350-a441f4a047b8af8c48a29677c95d6d2268f81982.tar.bz2 scummvm-rg350-a441f4a047b8af8c48a29677c95d6d2268f81982.zip |
DIRECTOR: Lingo: Initial code for field assignments
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/lingo/lingo-code.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp index b59c2c2605..48419862a6 100644 --- a/engines/director/lingo/lingo-code.cpp +++ b/engines/director/lingo/lingo-code.cpp @@ -43,6 +43,7 @@ // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF // THIS SOFTWARE. +#include "director/cast.h" #include "director/lingo/lingo.h" #include "director/lingo/lingo-gr.h" @@ -305,6 +306,12 @@ void Lingo::c_assign() { } if (d1.type == REFERENCE) { + if (!g_director->getCurrentScore()->_castsInfo.contains(d1.u.i)) { + warning("c_assign: Unknown REFERENCE %d", d1.u.i); + g_lingo->pushVoid(); + return; + } + warning("STUB: c_assing REFERENCE"); g_lingo->push(d1); |