build fix

This commit is contained in:
Ovahlord
2024-06-24 20:46:30 +02:00
parent f229a6b42a
commit 3aa63b9217

View File

@@ -17,6 +17,7 @@
#include "PacketUtilities.h"
#include "Hyperlinks.h"
#include "StringFormat.h"
#include <utf8.h>
WorldPackets::InvalidStringValueException::InvalidStringValueException(std::string const& value) : ByteBufferInvalidValueException("string", value.c_str())
@@ -57,6 +58,6 @@ bool WorldPackets::Strings::NoHyperlinks::Validate(std::string const& value)
}
WorldPackets::PacketArrayMaxCapacityException::PacketArrayMaxCapacityException(std::size_t requestedSize, std::size_t sizeLimit)
: ByteBufferException(Trinity::StringFormat("Attempted to read more array elements from packet {} than allowed {}", requestedSize, sizeLimit))
{
message().assign("Attempted to read more array elements from packet " + Trinity::ToString(requestedSize) + " than allowed " + Trinity::ToString(sizeLimit));
}