Added safety check to DraggedCorpses list iteration in Client::DraggedCorpses()

This commit is contained in:
Uleat 2015-02-24 00:52:18 -05:00
parent 318a664b09
commit 0b6d71181f

View File

@ -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;
}
}
}