diff --git a/src/de/steamwar/tutorial/commands/BookReplaceCommand.java b/src/de/steamwar/tutorial/commands/BookReplaceCommand.java index 43b052f..75ca17e 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); - stringList.set(i, string.replace(oldChar, newChar)); + bookMeta.setPage(i, string.replace(oldChar, newChar)); } } }