From 0b6d71181fe89db14d6e2b310982cd9bc7929060 Mon Sep 17 00:00:00 2001 From: Uleat Date: Tue, 24 Feb 2015 00:52:18 -0500 Subject: [PATCH] Added safety check to DraggedCorpses list iteration in Client::DraggedCorpses() --- zone/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/client.cpp b/zone/client.cpp index 4b813c1b2..93ef853d0 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -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; } } }