@@ -160,13 +160,13 @@ struct PacketWriter : SaveFilter {
}
*p = this->current;
this->current = NULL;
/* virtual */ void Write(byte *buf, size_t size)
void Write(byte *buf, size_t size) override
{
/* We want to abort the saving when the socket is closed. */
if (this->cs == NULL) SlError(STR_NETWORK_ERROR_LOSTCONNECTION);
if (this->current == NULL) this->current = new Packet(PACKET_SERVER_MAP_DATA);
@@ -187,13 +187,13 @@ struct PacketWriter : SaveFilter {
if (this->mutex != NULL) this->mutex->EndCritical();
this->total_size += size;
/* virtual */ void Finish()
void Finish() override
if (this->mutex != NULL) this->mutex->BeginCritical();