diff --git a/ChangeLog.md b/ChangeLog.md index 4b0f87ff8..5a745b3fd 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -73,6 +73,7 @@ Nazara Engine: - ⚠️ Removed array/pointer constructor from Vector classes - Fixed Platform module not being classified as client-only - ⚠️ Renamed Bitset::Read to Bitset::Write +- Fixed ENetCompressor class destructor not being virtual - ⚠️ Added a type tag parameter to Serialize and Unserialize functions, to prevent implicit conversions with overloads - Fixed Apply functions with complex return types diff --git a/include/Nazara/Network/ENetCompressor.hpp b/include/Nazara/Network/ENetCompressor.hpp index 3ff6cbca2..27bccdace 100644 --- a/include/Nazara/Network/ENetCompressor.hpp +++ b/include/Nazara/Network/ENetCompressor.hpp @@ -29,7 +29,7 @@ namespace Nz { public: ENetCompressor() = default; - ~ENetCompressor(); + virtual ~ENetCompressor(); virtual std::size_t Compress(const ENetPeer* peer, const NetBuffer* buffers, std::size_t bufferCount, std::size_t totalInputSize, UInt8* output, std::size_t maxOutputSize) = 0; virtual std::size_t Decompress(const ENetPeer* peer, const UInt8* input, std::size_t inputSize, UInt8* output, std::size_t maxOutputSize) = 0;