// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { /// Temporary void ENetPacketRef::Reset(ENetPacket* packet) { if (m_packet) { if (--m_packet->referenceCount == 0) m_packet->owner->Delete(m_packet); } m_packet = packet; if (m_packet) m_packet->referenceCount++; } }