ALL: Local script variables not always initialized
|Reported by:||eriktorbjorn||Owned by:||Kirben|
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.
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?
Ticket imported from: #874631. Ticket imported from: bugs/1384.
Change History (9)
comment:5 by , 17 years ago
|Summary:||Local script variables not always initialized? → ALL: Local script variables not always initialized|