Fixed erase
This commit is contained in:
parent
9b3933d641
commit
49724cd427
@ -1885,7 +1885,7 @@ bool cChunk::AddClient(cClientHandle * a_Client)
|
|||||||
|
|
||||||
void cChunk::RemoveClient(cClientHandle * a_Client)
|
void cChunk::RemoveClient(cClientHandle * a_Client)
|
||||||
{
|
{
|
||||||
std::remove(m_LoadedByClient.begin(), m_LoadedByClient.end(), a_Client);
|
m_LoadedByClient.erase(std::remove(m_LoadedByClient.begin(), m_LoadedByClient.end(), a_Client));
|
||||||
|
|
||||||
if (!a_Client->IsDestroyed())
|
if (!a_Client->IsDestroyed())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user