From e71143979f1a7f78fe26e6098560ba099da0835c Mon Sep 17 00:00:00 2001 From: Alex Noir Date: Mon, 9 Dec 2024 00:59:28 +0300 Subject: [PATCH] Fix version number not being sent properly to the server --- src/packet_distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index ad9bbf382..0f2464e3a 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -75,7 +75,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) net_manager->server_connected(true); - QStringList f_contents = {"AO2", QString::number(get_release()) + QString::number(get_major_version()) + QString::number(get_minor_version())}; + QStringList f_contents = {"AO2", QString("%1.%2.%3").arg(QString::number(get_release()), QString::number(get_major_version()), QString::number(get_minor_version()))}; send_server_packet(new AOPacket("ID", f_contents)); } else if (header == "CT") {