diff options
Diffstat (limited to 'linden/indra/llmessage/llxfermanager.cpp')
-rw-r--r-- | linden/indra/llmessage/llxfermanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llxfermanager.cpp b/linden/indra/llmessage/llxfermanager.cpp index 914488e..7758a32 100644 --- a/linden/indra/llmessage/llxfermanager.cpp +++ b/linden/indra/llmessage/llxfermanager.cpp | |||
@@ -223,8 +223,8 @@ LLXfer *LLXferManager::findXfer (U64 id, LLXfer *list_head) | |||
223 | 223 | ||
224 | void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head) | 224 | void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head) |
225 | { | 225 | { |
226 | LLXfer *xferp; | 226 | // This function assumes that delp will only occur in the list |
227 | 227 | // zero or one times. | |
228 | if (delp) | 228 | if (delp) |
229 | { | 229 | { |
230 | if (*list_head == delp) | 230 | if (*list_head == delp) |
@@ -234,14 +234,14 @@ void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head) | |||
234 | } | 234 | } |
235 | else | 235 | else |
236 | { | 236 | { |
237 | xferp = *list_head; | 237 | LLXfer *xferp = *list_head; |
238 | while (xferp->mNext) | 238 | while (xferp->mNext) |
239 | { | 239 | { |
240 | if (xferp->mNext == delp) | 240 | if (xferp->mNext == delp) |
241 | { | 241 | { |
242 | xferp->mNext = delp->mNext; | 242 | xferp->mNext = delp->mNext; |
243 | delete (delp); | 243 | delete (delp); |
244 | continue; | 244 | break; |
245 | } | 245 | } |
246 | xferp = xferp->mNext; | 246 | xferp = xferp->mNext; |
247 | } | 247 | } |