mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 03:22:26 +00:00
Added safety check to DraggedCorpses list iteration in Client::DraggedCorpses()
This commit is contained in:
parent
318a664b09
commit
0b6d71181f
@ -6220,6 +6220,8 @@ void Client::DragCorpses()
|
|||||||
!corpse->CastToCorpse()->Summon(this, false, false)) {
|
!corpse->CastToCorpse()->Summon(this, false, false)) {
|
||||||
Message_StringID(MT_DefaultText, CORPSEDRAG_STOP);
|
Message_StringID(MT_DefaultText, CORPSEDRAG_STOP);
|
||||||
It = DraggedCorpses.erase(It);
|
It = DraggedCorpses.erase(It);
|
||||||
|
if (It == DraggedCorpses.end())
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user