diff --git a/src/de/steamwar/tutorial/commands/BookReplaceCommand.java b/src/de/steamwar/tutorial/commands/BookReplaceCommand.java index 75ca17e..46f6008 100644 --- a/src/de/steamwar/tutorial/commands/BookReplaceCommand.java +++ b/src/de/steamwar/tutorial/commands/BookReplaceCommand.java @@ -42,7 +42,7 @@ public class BookReplaceCommand extends SWCommand { List stringList = bookMeta.getPages(); for (int i = 0; i < stringList.size(); i++) { String string = stringList.get(i); - bookMeta.setPage(i, string.replace(oldChar, newChar)); + bookMeta.setPage(i + 1, string.replace(oldChar, newChar)); } } }