script index starts at 0

svn-id: r8021
This commit is contained in:
Max Horn 2003-05-26 20:49:18 +00:00
parent b6a424a1df
commit 170444836c

View File

@ -524,11 +524,11 @@ bool ScummDebugger::Cmd_ImportRes(int argc, const char** argv) {
bool ScummDebugger::Cmd_PrintScript(int argc, const char **argv) { bool ScummDebugger::Cmd_PrintScript(int argc, const char **argv) {
int i; int i;
ScriptSlot *ss = &_s->vm.slot[1]; ScriptSlot *ss = &_s->vm.slot[0];
Debug_Printf("+--------------------------------------+\n"); Debug_Printf("+--------------------------------------+\n");
Debug_Printf("|# | num | offset|sta|typ|fr|rec|fc|cut|\n"); Debug_Printf("|# | num | offset|sta|typ|fr|rec|fc|cut|\n");
Debug_Printf("+--+-----+-------+---+---+--+--+---+---+\n"); Debug_Printf("+--+-----+-------+---+---+--+--+---+---+\n");
for (i = 1; i < NUM_SCRIPT_SLOT; i++, ss++) { for (i = 0; i < NUM_SCRIPT_SLOT; i++, ss++) {
if (ss->number) { if (ss->number) {
Debug_Printf("|%2d|%5d|0x%05x|%3d|%3d|%2d|%3d|%2d|%3d|\n", Debug_Printf("|%2d|%5d|0x%05x|%3d|%3d|%2d|%3d|%2d|%3d|\n",
i, ss->number, ss->offs, ss->status, ss->where, i, ss->number, ss->offs, ss->status, ss->where,