summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vaporize/library/Kettle.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/vaporize/library/Kettle.java b/vaporize/library/Kettle.java
index 38c941a..ffbf2dd 100644
--- a/vaporize/library/Kettle.java
+++ b/vaporize/library/Kettle.java
@@ -90,7 +90,7 @@ class Kettle {
* keep track of this...
*/
protected int findLabelIndex(String str) {
- int index = -1;
+ int index = -3;
// is this guarenteed?
String search = str.substring(1);
String comp;
@@ -105,12 +105,12 @@ class Kettle {
}
}
- if (index == -1) {
+ if (index == -3) {
MinimalLogger.severe(String.format("findLabelIndex could not compute label for %s!",
str.trim()));
}
- // go to the section AFTER the label
- return index+1;
+ // go to the section AFTER the label, and account for starting at zero
+ return index+2;
}
}