aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-26 20:49:18 +0000
committerMax Horn2003-05-26 20:49:18 +0000
commit170444836cb524eea5c18c8e171344e5e903fc1c (patch)
treea51a2dd44df6b4099d46e295186811c9ac223995 /scumm
parentb6a424a1df06810a3bb0a3ed7601c9b5d8dbd834 (diff)
downloadscummvm-rg350-170444836cb524eea5c18c8e171344e5e903fc1c.tar.gz
scummvm-rg350-170444836cb524eea5c18c8e171344e5e903fc1c.tar.bz2
scummvm-rg350-170444836cb524eea5c18c8e171344e5e903fc1c.zip
script index starts at 0
svn-id: r8021
Diffstat (limited to 'scumm')
-rw-r--r--scumm/debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 8409b8da09..348b046bf4 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -524,11 +524,11 @@ bool ScummDebugger::Cmd_ImportRes(int argc, const char** argv) {
bool ScummDebugger::Cmd_PrintScript(int argc, const char **argv) {
int i;
- ScriptSlot *ss = &_s->vm.slot[1];
+ ScriptSlot *ss = &_s->vm.slot[0];
Debug_Printf("+--------------------------------------+\n");
Debug_Printf("|# | num | offset|sta|typ|fr|rec|fc|cut|\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) {
Debug_Printf("|%2d|%5d|0x%05x|%3d|%3d|%2d|%3d|%2d|%3d|\n",
i, ss->number, ss->offs, ss->status, ss->where,