fix crash due to empty packets

This commit is contained in:
scatterflower 2021-04-25 12:57:02 -05:00
parent 192930f180
commit e44f687030

View File

@ -25,6 +25,9 @@ AOPacket::AOPacket(QString p_header, QStringList p_contents)
AOPacket::AOPacket(QString p_packet)
{
if (p_packet.isEmpty())
return;
QStringList packet_contents = p_packet.split("#");
if (p_packet.at(0) == '#') {
// The header is encrypted with FantaCrypt