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 {
this.compType = reader.getString(); this.compType = reader.getString();
this.language = reader.getString(); this.language = reader.getString();
this.stringCount = reader.getInt(); this.stringCount = reader.getInt();
this.message = "";
IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString()); IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString());
} else { } else {

Loading…
Cancel
Save