From 74b1e560bb6049a9b7e0cc60f0939aa414b0d51d Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Wed, 29 Nov 2023 23:38:03 +0000 Subject: [PATCH] [*] I needed 'eeep (amend previous two commits) --- Source/IO/FS/FS.cpp | 2 +- Source/IO/Net/AuNetSocket.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/IO/FS/FS.cpp b/Source/IO/FS/FS.cpp index 1cf82b20..8d5f2fd0 100644 --- a/Source/IO/FS/FS.cpp +++ b/Source/IO/FS/FS.cpp @@ -561,7 +561,7 @@ namespace Aurora::IO::FS if (AuFS::Remove(*itr)) { bSuccess |= true; - itr = dirsAll.end(); + itr = dirsAll.erase(itr); } else { diff --git a/Source/IO/Net/AuNetSocket.cpp b/Source/IO/Net/AuNetSocket.cpp index 60bcbc29..698f0e08 100644 --- a/Source/IO/Net/AuNetSocket.cpp +++ b/Source/IO/Net/AuNetSocket.cpp @@ -41,6 +41,7 @@ namespace Aurora::IO::Net pWorker_(pWorker), pSocketDriver_(pSocketDriver), osHandle_(osHandle), + wpParent_(pParent), wpParent2_(pParent2) { this->pWorker_->AddSocket(this);