Skip to content
Permalink
Browse files

DIRECTOR: LINGO: Safeguard check to puppetSound

  • Loading branch information
sev- committed Mar 23, 2020
1 parent ea34ca8 commit e82c6da8f98ef92162316648e577ab10a5ab749e
Showing with 7 additions and 0 deletions.
  1. +7 −0 engines/director/lingo/lingo-builtins.cpp
@@ -1405,6 +1405,13 @@ void LB::b_puppetSound(int nargs) {

DirectorSound *sound = g_director->getSoundManager();
Datum castMember = g_lingo->pop();

if (!score) {
warning("b_puppetSound(): no score");

return;
}

int castId = g_lingo->castIdFetch(castMember);

if (castId == 0) {

0 comments on commit e82c6da

Please sign in to comment.
You can’t perform that action at this time.