mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-09 18:53:36 +00:00
Added safety check to DraggedCorpses list iteration in Client::DraggedCorpses()
This commit is contained in:
1 parent
318a664b09
commit
0b6d71181f
1 file changed
+2
@@ -6220,6 +6220,8 @@ void Client::DragCorpses()
|
||||
!corpse->CastToCorpse()->Summon(this, false, false)) {
|
||||
Message_StringID(MT_DefaultText, CORPSEDRAG_STOP);
|
||||
It = DraggedCorpses.erase(It);
|
||||
if (It == DraggedCorpses.end())
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user