From 9b27774fd3cdd10e2ed5756083df3d589e67729e Mon Sep 17 00:00:00 2001 From: Salanto Date: Wed, 5 May 2021 14:33:57 +0200 Subject: [PATCH] Update packets.cpp Shouldn't send it if its garbage data --- src/packets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packets.cpp b/src/packets.cpp index 13931af..a77fe75 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -64,8 +64,10 @@ void AOClient::pktSoftwareId(AreaData* area, int argc, QStringList argv, AOPacke sendPacket("PN", {QString::number(server->player_count), server->max_players}); sendPacket("FL", feature_list); + if (server->asset_url.isValid()) { QByteArray asset_url = server->asset_url.toEncoded(QUrl::EncodeSpaces); sendPacket("ASS", {asset_url}); + } } void AOClient::pktBeginLoad(AreaData* area, int argc, QStringList argv, AOPacket packet)