From 3ebfd631ca8371f7c72f152109736acafc1b78e4 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Mon, 9 Dec 2024 01:09:44 +0300 Subject: [PATCH] Fix version number not being sent properly to the server (#35) --- 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") {