Skip to content

Commit 1c3810d

Browse files
committed
More debugging en route to fixing #172, #172
1 parent 90ba667 commit 1c3810d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

load/dmbase.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,12 @@ msg_base = {
890890
//break;
891891
case 0: // Next message
892892
if (userSettings.debug.message_scan) {
893-
console.putmsg("DEBUG: Next Msg\n");
893+
//console.putmsg("DEBUG: Next Msg\n");
894+
console.putmsg(high_intensity + "tmpPtr: " + normal +
895+
tmpPtr + "\t" + high_intensity + "indices.length: "
896+
+ normal + indices.length + "\t" + high_intensity +
897+
"indices[tmpPtr]: " + normal + indices[tmpPtr] +
898+
"\n");
894899
}
895900
if ((tmpPtr <= 0) && (inc == -1)) {
896901
mBase.close();
@@ -904,7 +909,7 @@ msg_base = {
904909
while (this.dispMsg(mBase, indices[tmpPtr], true)
905910
== null) {
906911
tmpPtr += inc;
907-
if ((tmpPtr == 0) || (tmpPtr > indices.length)) {
912+
if ((tmpPtr == 0) || (tmpPtr >= indices.length)) {
908913
break;
909914
}
910915
}

0 commit comments

Comments
 (0)