[ scummvm-Bugs-874631 ] Local script variables not always initialized?

SourceForge.net noreply at sourceforge.net
Sat Jan 10 22:40:25 CET 2004


Bugs item #874631, was opened at 2004-01-10 22:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=874631&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: Local script variables not always initialized?

Initial Comment:
While looking for a different bug, I noticed that in
SCUMM games we sometimes ensure that all unused local
variables for a script are zeroed before calling
runScript(), and sometimes we don't.

Specifically, I noticed these cases:

In Actor::startWalkAnim(), when a walk script is invoked.

In ScummEngine::runInventoryScript()

When running the boot script. In this case we don't
even bother to give the script as many local variables
as we usually do.

Now, in all likelyhood these cases are probably still
well-defined. I assume the scripts never look at the
uninitialized variables. But maybe we should initialize
them anyway, just to be nice?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=874631&group_id=37116




More information about the Scummvm-tracker mailing list