diff --git a/login-server/src/com/aionemu/loginserver/network/aion/serverpackets/SM_SERVER_LIST.java b/login-server/src/com/aionemu/loginserver/network/aion/serverpackets/SM_SERVER_LIST.java index 21e3dd0db..0fee62c36 100644 --- a/login-server/src/com/aionemu/loginserver/network/aion/serverpackets/SM_SERVER_LIST.java +++ b/login-server/src/com/aionemu/loginserver/network/aion/serverpackets/SM_SERVER_LIST.java @@ -44,10 +44,10 @@ protected void writeImpl(LoginConnection con) { writeH(0); // unk, always 0 writeC(0);// server.brackets ? 1 : 0 } - writeH(maxIdWithChars); + writeH(maxIdWithChars + 1); writeC(1); // enable "last server" button & auto-connection ? 1 : 0 - for (byte i = 1; i <= maxIdWithChars; i++) - writeC(charCountOnServer.getOrDefault(i, 0)); + for (byte gsId = 1; gsId <= maxIdWithChars; gsId++) + writeC(charCountOnServer.getOrDefault(gsId, 0)); writeB(new byte[13]); // unk (44 77 90 A8 5D 75 C9 98 6D 20 53 2A 97) } }