Browse Source

Initialize variable before building string.

master
MagicBot 1 year ago
parent
commit
0acd8cd939
  1. 1
      src/engine/net/client/msg/PetitionReceivedMsg.java

1
src/engine/net/client/msg/PetitionReceivedMsg.java

@ -82,6 +82,7 @@ public class PetitionReceivedMsg extends ClientNetMsg { @@ -82,6 +82,7 @@ public class PetitionReceivedMsg extends ClientNetMsg {
this.compType = reader.getString();
this.language = reader.getString();
this.stringCount = reader.getInt();
this.message = "";
IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString());
} else {

Loading…
Cancel
Save